the-moby-effect
Version:
Moby/Docker API client built using effect-ts
31 lines • 1.25 kB
JavaScript
import * as Schema from "effect/Schema";
import * as SwarmDriver from "./SwarmDriver.generated.js";
import * as SwarmIPAMOptions from "./SwarmIPAMOptions.generated.js";
import * as SwarmNetworkSpec from "./SwarmNetworkSpec.generated.js";
import * as SwarmVersion from "./SwarmVersion.generated.js";
export class SwarmNetwork extends /*#__PURE__*/Schema.Class("SwarmNetwork")({
ID: Schema.String,
Version: /*#__PURE__*/Schema.optionalWith(SwarmVersion.SwarmVersion, {
nullable: true
}),
CreatedAt: /*#__PURE__*/Schema.optionalWith(Schema.DateFromString, {
nullable: true
}),
UpdatedAt: /*#__PURE__*/Schema.optionalWith(Schema.DateFromString, {
nullable: true
}),
Spec: /*#__PURE__*/Schema.optionalWith(SwarmNetworkSpec.SwarmNetworkSpec, {
nullable: true
}),
DriverState: /*#__PURE__*/Schema.optionalWith(SwarmDriver.SwarmDriver, {
nullable: true
}),
IPAMOptions: /*#__PURE__*/Schema.optionalWith(SwarmIPAMOptions.SwarmIPAMOptions, {
nullable: true
})
}, {
identifier: "SwarmNetwork",
title: "swarm.Network",
documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/network.go#L75-L82"
}) {}
//# sourceMappingURL=SwarmNetwork.generated.js.map