the-moby-effect
Version:
Moby/Docker API client built using effect-ts
113 lines • 4.7 kB
TypeScript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
import * as SwarmGenericResource from "./SwarmGenericResource.generated.js";
import * as SwarmNetworkAttachment from "./SwarmNetworkAttachment.generated.js";
import * as SwarmTaskSpec from "./SwarmTaskSpec.generated.js";
import * as SwarmTaskStatus from "./SwarmTaskStatus.generated.js";
import * as SwarmVersion from "./SwarmVersion.generated.js";
import * as SwarmVolumeAttachment from "./SwarmVolumeAttachment.generated.js";
declare const SwarmTask_base: Schema.Class<SwarmTask, {
Spec: Schema.optionalWith<typeof SwarmTaskSpec.SwarmTaskSpec, {
nullable: true;
}>;
ServiceID: Schema.optional<typeof Schema.String>;
Slot: Schema.optional<MobySchemas.Int64Schemas.$Int64>;
NodeID: Schema.optional<typeof Schema.String>;
Status: Schema.optionalWith<typeof SwarmTaskStatus.SwarmTaskStatus, {
nullable: true;
}>;
DesiredState: Schema.optional<typeof Schema.String>;
NetworksAttachments: Schema.optionalWith<Schema.Array$<Schema.NullOr<typeof SwarmNetworkAttachment.SwarmNetworkAttachment>>, {
nullable: true;
}>;
GenericResources: Schema.optionalWith<Schema.Array$<Schema.NullOr<typeof SwarmGenericResource.SwarmGenericResource>>, {
nullable: true;
}>;
JobIteration: Schema.optionalWith<typeof SwarmVersion.SwarmVersion, {
nullable: true;
}>;
Volumes: Schema.NullOr<Schema.Array$<Schema.NullOr<typeof SwarmVolumeAttachment.SwarmVolumeAttachment>>>;
Name: Schema.optional<typeof Schema.String>;
Labels: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
Version: Schema.optionalWith<typeof SwarmVersion.SwarmVersion, {
nullable: true;
}>;
CreatedAt: Schema.optionalWith<typeof Schema.DateFromString, {
nullable: true;
}>;
UpdatedAt: Schema.optionalWith<typeof Schema.DateFromString, {
nullable: true;
}>;
ID: typeof Schema.String;
}, Schema.Struct.Encoded<{
Spec: Schema.optionalWith<typeof SwarmTaskSpec.SwarmTaskSpec, {
nullable: true;
}>;
ServiceID: Schema.optional<typeof Schema.String>;
Slot: Schema.optional<MobySchemas.Int64Schemas.$Int64>;
NodeID: Schema.optional<typeof Schema.String>;
Status: Schema.optionalWith<typeof SwarmTaskStatus.SwarmTaskStatus, {
nullable: true;
}>;
DesiredState: Schema.optional<typeof Schema.String>;
NetworksAttachments: Schema.optionalWith<Schema.Array$<Schema.NullOr<typeof SwarmNetworkAttachment.SwarmNetworkAttachment>>, {
nullable: true;
}>;
GenericResources: Schema.optionalWith<Schema.Array$<Schema.NullOr<typeof SwarmGenericResource.SwarmGenericResource>>, {
nullable: true;
}>;
JobIteration: Schema.optionalWith<typeof SwarmVersion.SwarmVersion, {
nullable: true;
}>;
Volumes: Schema.NullOr<Schema.Array$<Schema.NullOr<typeof SwarmVolumeAttachment.SwarmVolumeAttachment>>>;
Name: Schema.optional<typeof Schema.String>;
Labels: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
Version: Schema.optionalWith<typeof SwarmVersion.SwarmVersion, {
nullable: true;
}>;
CreatedAt: Schema.optionalWith<typeof Schema.DateFromString, {
nullable: true;
}>;
UpdatedAt: Schema.optionalWith<typeof Schema.DateFromString, {
nullable: true;
}>;
ID: typeof Schema.String;
}>, never, {
readonly ID: string;
} & {
readonly CreatedAt?: Date | undefined;
} & {
readonly Version?: SwarmVersion.SwarmVersion | undefined;
} & {
readonly UpdatedAt?: Date | undefined;
} & {
readonly NodeID?: string | undefined;
} & {
readonly Spec?: SwarmTaskSpec.SwarmTaskSpec | undefined;
} & {
readonly Name?: string | undefined;
} & {
readonly Volumes: readonly (SwarmVolumeAttachment.SwarmVolumeAttachment | null)[] | null;
} & {
readonly Labels: {
readonly [x: string]: string;
} | null;
} & {
readonly Status?: SwarmTaskStatus.SwarmTaskStatus | undefined;
} & {
readonly JobIteration?: SwarmVersion.SwarmVersion | undefined;
} & {
readonly GenericResources?: readonly (SwarmGenericResource.SwarmGenericResource | null)[] | undefined;
} & {
readonly ServiceID?: string | undefined;
} & {
readonly Slot?: MobySchemas.Int64Schemas.Int64Brand | undefined;
} & {
readonly DesiredState?: string | undefined;
} & {
readonly NetworksAttachments?: readonly (SwarmNetworkAttachment.SwarmNetworkAttachment | null)[] | undefined;
}, {}, {}>;
export declare class SwarmTask extends SwarmTask_base {
}
export {};
//# sourceMappingURL=SwarmTask.generated.d.ts.map