the-moby-effect
Version:
Moby/Docker API client built using effect-ts
24 lines (21 loc) • 849 B
text/typescript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.ts";
export class SwarmReplicatedJob extends Schema.Class<SwarmReplicatedJob>("SwarmReplicatedJob")(
{
MaxConcurrent: Schema.optional(
Schema.NullOr(
MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: 0n, maximum: 2n ** 64n - 1n }))
)
),
TotalCompletions: Schema.optional(
Schema.NullOr(
MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: 0n, maximum: 2n ** 64n - 1n }))
)
),
},
{
identifier: "SwarmReplicatedJob",
title: "swarm.ReplicatedJob",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#ReplicatedJob",
}
) {}