UNPKG

the-moby-effect

Version:
40 lines 2.09 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as SwarmAnnotations from "./SwarmAnnotations.generated.js"; import * as SwarmGenericResource from "./SwarmGenericResource.generated.js"; import * as SwarmMeta from "./SwarmMeta.generated.js"; import * as SwarmNetworkAttachment from "./SwarmNetworkAttachment.generated.js"; import * as SwarmTaskSpec from "./SwarmTaskSpec.generated.js"; import * as SwarmTaskStatus from "./SwarmTaskStatus.generated.js"; import * as SwarmVersion from "./SwarmVersion.generated.js"; import * as SwarmVolumeAttachment from "./SwarmVolumeAttachment.generated.js"; export class SwarmTask extends /*#__PURE__*/Schema.Class("SwarmTask")({ ID: Schema.String, ...SwarmMeta.SwarmMeta.fields, ...SwarmAnnotations.SwarmAnnotations.fields, Spec: /*#__PURE__*/Schema.optionalWith(SwarmTaskSpec.SwarmTaskSpec, { nullable: true }), ServiceID: /*#__PURE__*/Schema.optional(Schema.String), Slot: /*#__PURE__*/Schema.optional(MobySchemas.Int64), NodeID: /*#__PURE__*/Schema.optional(Schema.String), Status: /*#__PURE__*/Schema.optionalWith(SwarmTaskStatus.SwarmTaskStatus, { nullable: true }), DesiredState: /*#__PURE__*/Schema.optional(Schema.String), NetworksAttachments: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmNetworkAttachment.SwarmNetworkAttachment)), { nullable: true }), GenericResources: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmGenericResource.SwarmGenericResource)), { nullable: true }), JobIteration: /*#__PURE__*/Schema.optionalWith(SwarmVersion.SwarmVersion, { nullable: true }), Volumes: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmVolumeAttachment.SwarmVolumeAttachment))) }, { identifier: "SwarmTask", title: "swarm.Task", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/task.go#L45-L70" }) {} //# sourceMappingURL=SwarmTask.generated.js.map