the-moby-effect
Version:
Moby/Docker API client built using effect-ts
15 lines (13 loc) • 547 B
text/typescript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
export class SwarmReplicatedService extends Schema.Class<SwarmReplicatedService>("SwarmReplicatedService")(
{
Replicas: Schema.optionalWith(MobySchemas.UInt64, { nullable: true }),
},
{
identifier: "SwarmReplicatedService",
title: "swarm.ReplicatedService",
documentation:
"https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/service.go#L78-L81",
}
) {}