UNPKG

the-moby-effect

Version:
21 lines 1.09 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as SwarmPlacementPreference from "./SwarmPlacementPreference.generated.js"; import * as SwarmPlatform from "./SwarmPlatform.generated.js"; export class SwarmPlacement extends /*#__PURE__*/Schema.Class("SwarmPlacement")({ Constraints: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Preferences: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmPlacementPreference.SwarmPlacementPreference)), { nullable: true }), MaxReplicas: /*#__PURE__*/Schema.optional(MobySchemas.UInt64), Platforms: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmPlatform.SwarmPlatform)), { nullable: true }) }, { identifier: "SwarmPlacement", title: "swarm.Placement", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/task.go#L145-L155" }) {} //# sourceMappingURL=SwarmPlacement.generated.js.map