the-moby-effect
Version:
Moby/Docker API client built using effect-ts
15 lines • 804 B
JavaScript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
import * as SwarmGenericResource from "./SwarmGenericResource.generated.js";
export class SwarmResources extends /*#__PURE__*/Schema.Class("SwarmResources")({
NanoCPUs: /*#__PURE__*/Schema.optional(MobySchemas.Int64),
MemoryBytes: /*#__PURE__*/Schema.optional(MobySchemas.Int64),
GenericResources: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmGenericResource.SwarmGenericResource)), {
nullable: true
})
}, {
identifier: "SwarmResources",
title: "swarm.Resources",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/task.go#L99-L105"
}) {}
//# sourceMappingURL=SwarmResources.generated.js.map