UNPKG

the-moby-effect

Version:
43 lines 2.09 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as PluginSpec from "./PluginSpec.generated.js"; import * as SwarmContainerSpec from "./SwarmContainerSpec.generated.js"; import * as SwarmDriver from "./SwarmDriver.generated.js"; import * as SwarmNetworkAttachmentConfig from "./SwarmNetworkAttachmentConfig.generated.js"; import * as SwarmNetworkAttachmentSpec from "./SwarmNetworkAttachmentSpec.generated.js"; import * as SwarmPlacement from "./SwarmPlacement.generated.js"; import * as SwarmResourceRequirements from "./SwarmResourceRequirements.generated.js"; import * as SwarmRestartPolicy from "./SwarmRestartPolicy.generated.js"; export class SwarmTaskSpec extends /*#__PURE__*/Schema.Class("SwarmTaskSpec")({ ContainerSpec: /*#__PURE__*/Schema.optionalWith(SwarmContainerSpec.SwarmContainerSpec, { nullable: true }), PluginSpec: /*#__PURE__*/Schema.optionalWith(PluginSpec.PluginSpec, { nullable: true }), NetworkAttachmentSpec: /*#__PURE__*/Schema.optionalWith(SwarmNetworkAttachmentSpec.SwarmNetworkAttachmentSpec, { nullable: true }), Resources: /*#__PURE__*/Schema.optionalWith(SwarmResourceRequirements.SwarmResourceRequirements, { nullable: true }), RestartPolicy: /*#__PURE__*/Schema.optionalWith(SwarmRestartPolicy.SwarmRestartPolicy, { nullable: true }), Placement: /*#__PURE__*/Schema.optionalWith(SwarmPlacement.SwarmPlacement, { nullable: true }), Networks: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmNetworkAttachmentConfig.SwarmNetworkAttachmentConfig)), { nullable: true }), LogDriver: /*#__PURE__*/Schema.optionalWith(SwarmDriver.SwarmDriver, { nullable: true }), ForceUpdate: MobySchemas.UInt64, Runtime: /*#__PURE__*/Schema.optional(Schema.String) }, { identifier: "SwarmTaskSpec", title: "swarm.TaskSpec", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/task.go#L72-L97" }) {} //# sourceMappingURL=SwarmTaskSpec.generated.js.map