the-moby-effect
Version:
Moby/Docker API client built using effect-ts
33 lines • 1.6 kB
JavaScript
import * as Schema from "effect/Schema";
import * as SwarmAnnotations from "./SwarmAnnotations.generated.js";
import * as SwarmEndpointSpec from "./SwarmEndpointSpec.generated.js";
import * as SwarmNetworkAttachmentConfig from "./SwarmNetworkAttachmentConfig.generated.js";
import * as SwarmServiceMode from "./SwarmServiceMode.generated.js";
import * as SwarmTaskSpec from "./SwarmTaskSpec.generated.js";
import * as SwarmUpdateConfig from "./SwarmUpdateConfig.generated.js";
export class SwarmServiceSpec extends /*#__PURE__*/Schema.Class("SwarmServiceSpec")({
...SwarmAnnotations.SwarmAnnotations.fields,
TaskTemplate: /*#__PURE__*/Schema.optionalWith(SwarmTaskSpec.SwarmTaskSpec, {
nullable: true
}),
Mode: /*#__PURE__*/Schema.optionalWith(SwarmServiceMode.SwarmServiceMode, {
nullable: true
}),
UpdateConfig: /*#__PURE__*/Schema.optionalWith(SwarmUpdateConfig.SwarmUpdateConfig, {
nullable: true
}),
RollbackConfig: /*#__PURE__*/Schema.optionalWith(SwarmUpdateConfig.SwarmUpdateConfig, {
nullable: true
}),
Networks: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmNetworkAttachmentConfig.SwarmNetworkAttachmentConfig)), {
nullable: true
}),
EndpointSpec: /*#__PURE__*/Schema.optionalWith(SwarmEndpointSpec.SwarmEndpointSpec, {
nullable: true
})
}, {
identifier: "SwarmServiceSpec",
title: "swarm.ServiceSpec",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/service.go#L26-L42"
}) {}
//# sourceMappingURL=SwarmServiceSpec.generated.js.map