the-moby-effect
Version:
Moby/Docker API client built using effect-ts
27 lines • 1.34 kB
JavaScript
import * as Schema from "effect/Schema";
import * as NetworkConfigReference from "./NetworkConfigReference.generated.js";
import * as SwarmAnnotations from "./SwarmAnnotations.generated.js";
import * as SwarmDriver from "./SwarmDriver.generated.js";
import * as SwarmIPAMOptions from "./SwarmIPAMOptions.generated.js";
export class SwarmNetworkSpec extends /*#__PURE__*/Schema.Class("SwarmNetworkSpec")({
...SwarmAnnotations.SwarmAnnotations.fields,
DriverConfiguration: /*#__PURE__*/Schema.optionalWith(SwarmDriver.SwarmDriver, {
nullable: true
}),
IPv6Enabled: /*#__PURE__*/Schema.optional(Schema.Boolean),
Internal: /*#__PURE__*/Schema.optional(Schema.Boolean),
Attachable: /*#__PURE__*/Schema.optional(Schema.Boolean),
Ingress: /*#__PURE__*/Schema.optional(Schema.Boolean),
IPAMOptions: /*#__PURE__*/Schema.optionalWith(SwarmIPAMOptions.SwarmIPAMOptions, {
nullable: true
}),
ConfigFrom: /*#__PURE__*/Schema.optionalWith(NetworkConfigReference.NetworkConfigReference, {
nullable: true
}),
Scope: /*#__PURE__*/Schema.optional(Schema.String)
}, {
identifier: "SwarmNetworkSpec",
title: "swarm.NetworkSpec",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/network.go#L84-L95"
}) {}
//# sourceMappingURL=SwarmNetworkSpec.generated.js.map