@zlayer/api-client 0.10.86 → 0.10.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +58 -1
- package/README.md +48 -6
- package/dist/apis/AuthenticationApi.d.ts +43 -1
- package/dist/apis/AuthenticationApi.js +112 -0
- package/dist/apis/ContainerNetworksApi.d.ts +123 -0
- package/dist/apis/ContainerNetworksApi.js +331 -0
- package/dist/apis/ContainersApi.d.ts +7 -4
- package/dist/apis/ContainersApi.js +13 -4
- package/dist/apis/EventsApi.d.ts +35 -0
- package/dist/apis/EventsApi.js +81 -0
- package/dist/apis/PermissionsApi.d.ts +18 -0
- package/dist/apis/PermissionsApi.js +46 -0
- package/dist/apis/SecretsApi.d.ts +38 -1
- package/dist/apis/SecretsApi.js +109 -0
- package/dist/apis/VolumesApi.d.ts +41 -7
- package/dist/apis/VolumesApi.js +102 -5
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/BridgeNetwork.d.ts +72 -0
- package/dist/models/BridgeNetwork.js +67 -0
- package/dist/models/BridgeNetworkAttachment.d.ts +50 -0
- package/dist/models/BridgeNetworkAttachment.js +56 -0
- package/dist/models/BridgeNetworkDetails.d.ts +79 -0
- package/dist/models/BridgeNetworkDetails.js +72 -0
- package/dist/models/BridgeNetworkDriver.d.ts +25 -0
- package/dist/models/BridgeNetworkDriver.js +51 -0
- package/dist/models/ConnectBridgeNetworkRequest.d.ts +45 -0
- package/dist/models/ConnectBridgeNetworkRequest.js +54 -0
- package/dist/models/ContainerEvent.d.ts +82 -0
- package/dist/models/ContainerEvent.js +67 -0
- package/dist/models/ContainerEventKind.d.ts +27 -0
- package/dist/models/ContainerEventKind.js +53 -0
- package/dist/models/ContainerHealthInfo.d.ts +53 -0
- package/dist/models/ContainerHealthInfo.js +54 -0
- package/dist/models/ContainerInfo.d.ts +40 -0
- package/dist/models/ContainerInfo.js +13 -0
- package/dist/models/ContainerRestartKind.d.ts +27 -0
- package/dist/models/ContainerRestartKind.js +53 -0
- package/dist/models/ContainerRestartPolicy.d.ts +53 -0
- package/dist/models/ContainerRestartPolicy.js +55 -0
- package/dist/models/ContainerWaitResponse.d.ts +30 -2
- package/dist/models/ContainerWaitResponse.js +6 -0
- package/dist/models/CreateBridgeNetworkRequest.d.ts +60 -0
- package/dist/models/CreateBridgeNetworkRequest.js +59 -0
- package/dist/models/CreateContainerRequest.d.ts +77 -0
- package/dist/models/CreateContainerRequest.js +23 -0
- package/dist/models/CreateVolumeRequest.d.ts +54 -0
- package/dist/models/CreateVolumeRequest.js +56 -0
- package/dist/models/DisconnectBridgeNetworkRequest.d.ts +38 -0
- package/dist/models/DisconnectBridgeNetworkRequest.js +52 -0
- package/dist/models/HealthCheckRequest.d.ts +94 -0
- package/dist/models/HealthCheckRequest.js +66 -0
- package/dist/models/NetworkAttachmentInfo.d.ts +49 -0
- package/dist/models/NetworkAttachmentInfo.js +54 -0
- package/dist/models/NetworkAttachmentRequest.d.ts +51 -0
- package/dist/models/NetworkAttachmentRequest.js +54 -0
- package/dist/models/OidcCallbackResponse.d.ts +47 -0
- package/dist/models/OidcCallbackResponse.js +59 -0
- package/dist/models/OidcProviderPublic.d.ts +39 -0
- package/dist/models/OidcProviderPublic.js +54 -0
- package/dist/models/PortMapping.d.ts +55 -0
- package/dist/models/PortMapping.js +57 -0
- package/dist/models/PortProtocol.d.ts +25 -0
- package/dist/models/PortProtocol.js +51 -0
- package/dist/models/PullImageRequest.d.ts +18 -0
- package/dist/models/PullImageRequest.js +5 -0
- package/dist/models/RegistryAuth.d.ts +52 -0
- package/dist/models/RegistryAuth.js +57 -0
- package/dist/models/RegistryAuthType.d.ts +25 -0
- package/dist/models/RegistryAuthType.js +51 -0
- package/dist/models/RevealAllSecretsResponse.d.ts +41 -0
- package/dist/models/RevealAllSecretsResponse.js +54 -0
- package/dist/models/RotateSecretRequest.d.ts +32 -0
- package/dist/models/RotateSecretRequest.js +50 -0
- package/dist/models/RotateSecretResponse.d.ts +46 -0
- package/dist/models/RotateSecretResponse.js +56 -0
- package/dist/models/VolumeInfo.d.ts +70 -0
- package/dist/models/VolumeInfo.js +64 -0
- package/dist/models/VolumeMount.d.ts +16 -3
- package/dist/models/VolumeMount.js +4 -3
- package/dist/models/VolumeMountType.d.ts +30 -0
- package/dist/models/VolumeMountType.js +56 -0
- package/dist/models/VolumeSummary.d.ts +7 -4
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AddMemberRequest.md +1 -1
- package/docs/AuditApi.md +3 -3
- package/docs/AuditEntry.md +1 -1
- package/docs/AuthenticationApi.md +212 -18
- package/docs/BackendGroupInfo.md +1 -1
- package/docs/BackendInfo.md +1 -1
- package/docs/BackendsResponse.md +1 -1
- package/docs/BootstrapRequest.md +1 -1
- package/docs/BridgeNetwork.md +47 -0
- package/docs/BridgeNetworkAttachment.md +41 -0
- package/docs/BridgeNetworkDetails.md +49 -0
- package/docs/BridgeNetworkDriver.md +33 -0
- package/docs/BuildApi.md +21 -21
- package/docs/BuildKind.md +1 -1
- package/docs/BuildRequest.md +1 -1
- package/docs/BuildRequestWithContext.md +1 -1
- package/docs/BuildStateEnum.md +1 -1
- package/docs/BuildStatus.md +1 -1
- package/docs/BulkImportResponse.md +1 -1
- package/docs/CertInfo.md +1 -1
- package/docs/ClusterApi.md +12 -12
- package/docs/ClusterJoinRequest.md +1 -1
- package/docs/ClusterJoinResponse.md +1 -1
- package/docs/ClusterNodeSummary.md +1 -1
- package/docs/ClusterPeer.md +1 -1
- package/docs/ConnectBridgeNetworkRequest.md +39 -0
- package/docs/ContainerEvent.md +47 -0
- package/docs/ContainerEventKind.md +33 -0
- package/docs/ContainerExecRequest.md +1 -1
- package/docs/ContainerExecResponse.md +1 -1
- package/docs/ContainerHealthInfo.md +39 -0
- package/docs/ContainerInfo.md +11 -1
- package/docs/ContainerNetworksApi.md +466 -0
- package/docs/ContainerResourceLimits.md +1 -1
- package/docs/ContainerRestartKind.md +33 -0
- package/docs/ContainerRestartPolicy.md +39 -0
- package/docs/ContainerStatsResponse.md +1 -1
- package/docs/ContainerWaitResponse.md +8 -2
- package/docs/ContainersApi.md +51 -42
- package/docs/CreateBridgeNetworkRequest.md +43 -0
- package/docs/CreateContainerRequest.md +19 -1
- package/docs/CreateDeploymentRequest.md +1 -1
- package/docs/CreateEnvironmentRequest.md +1 -1
- package/docs/CreateGitCredentialRequest.md +1 -1
- package/docs/CreateGroupRequest.md +1 -1
- package/docs/CreateNodeTunnelRequest.md +1 -1
- package/docs/CreateNodeTunnelResponse.md +1 -1
- package/docs/CreateNotifierRequest.md +1 -1
- package/docs/CreateProjectRequest.md +1 -1
- package/docs/CreateRegistryCredentialRequest.md +1 -1
- package/docs/CreateSecretRequest.md +1 -1
- package/docs/CreateSyncRequest.md +1 -1
- package/docs/CreateTaskRequest.md +1 -1
- package/docs/CreateTunnelRequest.md +1 -1
- package/docs/CreateTunnelResponse.md +1 -1
- package/docs/CreateUserRequest.md +1 -1
- package/docs/CreateVariableRequest.md +1 -1
- package/docs/CreateVolumeRequest.md +41 -0
- package/docs/CreateWorkflowRequest.md +1 -1
- package/docs/CredentialsApi.md +18 -18
- package/docs/CronApi.md +15 -15
- package/docs/CronJobResponse.md +1 -1
- package/docs/CronStatusResponse.md +1 -1
- package/docs/CsrfResponse.md +1 -1
- package/docs/DeploymentDetails.md +1 -1
- package/docs/DeploymentSummary.md +1 -1
- package/docs/DeploymentsApi.md +12 -12
- package/docs/DisconnectBridgeNetworkRequest.md +37 -0
- package/docs/DnsStatusResponse.md +1 -1
- package/docs/EnvironmentsApi.md +15 -15
- package/docs/EventsApi.md +85 -0
- package/docs/ForceLeaderRequest.md +1 -1
- package/docs/ForceLeaderResponse.md +1 -1
- package/docs/GitCredentialKindSchema.md +1 -1
- package/docs/GitCredentialResponse.md +1 -1
- package/docs/GpuInfoSummary.md +1 -1
- package/docs/GpuUtilizationReport.md +1 -1
- package/docs/GrantPermissionRequest.md +1 -1
- package/docs/GroupMembersResponse.md +1 -1
- package/docs/GroupsApi.md +21 -21
- package/docs/HealthApi.md +6 -6
- package/docs/HealthCheckRequest.md +51 -0
- package/docs/HealthResponse.md +1 -1
- package/docs/HeartbeatRequest.md +1 -1
- package/docs/ImageInfoDto.md +1 -1
- package/docs/ImagesApi.md +15 -15
- package/docs/InternalApi.md +6 -6
- package/docs/InternalScaleRequest.md +1 -1
- package/docs/InternalScaleResponse.md +1 -1
- package/docs/IpAllocationResponse.md +1 -1
- package/docs/JobExecutionResponse.md +1 -1
- package/docs/JobsApi.md +12 -12
- package/docs/JoinTokenResponse.md +1 -1
- package/docs/KillContainerRequest.md +1 -1
- package/docs/LinkDeploymentRequest.md +1 -1
- package/docs/LoginRequest.md +1 -1
- package/docs/LoginResponse.md +1 -1
- package/docs/NetworkAttachmentInfo.md +39 -0
- package/docs/NetworkAttachmentRequest.md +39 -0
- package/docs/NetworkSummary.md +1 -1
- package/docs/NetworksApi.md +15 -15
- package/docs/NodeDetails.md +1 -1
- package/docs/NodeResourceInfo.md +1 -1
- package/docs/NodeSummary.md +1 -1
- package/docs/NodesApi.md +12 -12
- package/docs/NotifierConfig.md +1 -1
- package/docs/NotifierConfigOneOf.md +1 -1
- package/docs/NotifierConfigOneOf1.md +1 -1
- package/docs/NotifierConfigOneOf2.md +1 -1
- package/docs/NotifierConfigOneOf3.md +1 -1
- package/docs/NotifierKind.md +1 -1
- package/docs/NotifiersApi.md +18 -18
- package/docs/OidcCallbackResponse.md +39 -0
- package/docs/OidcProviderPublic.md +37 -0
- package/docs/OverlayApi.md +12 -12
- package/docs/OverlayStatusResponse.md +1 -1
- package/docs/PeerInfo.md +1 -1
- package/docs/PeerListResponse.md +1 -1
- package/docs/PermissionLevel.md +1 -1
- package/docs/PermissionsApi.md +80 -9
- package/docs/PortMapping.md +41 -0
- package/docs/PortProtocol.md +33 -0
- package/docs/ProjectPullResponse.md +1 -1
- package/docs/ProjectsApi.md +27 -27
- package/docs/ProxyApi.md +12 -12
- package/docs/PruneResultDto.md +1 -1
- package/docs/PullImageRequest.md +5 -1
- package/docs/PullImageResponse.md +1 -1
- package/docs/RegisteredServiceInfo.md +1 -1
- package/docs/RegistryAuth.md +39 -0
- package/docs/RegistryAuthType.md +33 -0
- package/docs/RegistryAuthTypeSchema.md +1 -1
- package/docs/RegistryCredentialResponse.md +1 -1
- package/docs/ReplicationInfo.md +1 -1
- package/docs/RestartContainerRequest.md +1 -1
- package/docs/RevealAllSecretsResponse.md +37 -0
- package/docs/RotateSecretRequest.md +35 -0
- package/docs/RotateSecretResponse.md +39 -0
- package/docs/RouteInfo.md +1 -1
- package/docs/RoutesResponse.md +1 -1
- package/docs/ScaleRequest.md +1 -1
- package/docs/SecretMetadataResponse.md +1 -1
- package/docs/SecretsApi.md +175 -15
- package/docs/ServiceDetails.md +1 -1
- package/docs/ServiceEndpoint.md +1 -1
- package/docs/ServiceHealthInfo.md +1 -1
- package/docs/ServiceMetrics.md +1 -1
- package/docs/ServiceSummary.md +1 -1
- package/docs/ServicesApi.md +12 -12
- package/docs/SetPasswordRequest.md +1 -1
- package/docs/StepResult.md +1 -1
- package/docs/StopContainerRequest.md +1 -1
- package/docs/StorageApi.md +3 -3
- package/docs/StorageStatusResponse.md +1 -1
- package/docs/StoredEnvironment.md +1 -1
- package/docs/StoredNotifier.md +1 -1
- package/docs/StoredPermission.md +1 -1
- package/docs/StoredProject.md +1 -1
- package/docs/StoredSync.md +1 -1
- package/docs/StoredTask.md +1 -1
- package/docs/StoredUserGroup.md +1 -1
- package/docs/StoredVariable.md +1 -1
- package/docs/StoredWorkflow.md +1 -1
- package/docs/StreamBackendInfo.md +1 -1
- package/docs/StreamInfo.md +1 -1
- package/docs/StreamsResponse.md +1 -1
- package/docs/SubjectKind.md +1 -1
- package/docs/SuccessResponse.md +1 -1
- package/docs/SyncApplyResponse.md +1 -1
- package/docs/SyncDiffResponse.md +1 -1
- package/docs/SyncResourceResponse.md +1 -1
- package/docs/SyncResourceResult.md +1 -1
- package/docs/SyncsApi.md +15 -15
- package/docs/TagImageRequest.md +1 -1
- package/docs/TaskKind.md +1 -1
- package/docs/TaskRun.md +1 -1
- package/docs/TasksApi.md +18 -18
- package/docs/TemplateInfo.md +1 -1
- package/docs/TestNotifierResponse.md +1 -1
- package/docs/TlsResponse.md +1 -1
- package/docs/TokenRequest.md +1 -1
- package/docs/TokenResponse.md +1 -1
- package/docs/TriggerBuildResponse.md +1 -1
- package/docs/TriggerCronResponse.md +1 -1
- package/docs/TriggerJobResponse.md +1 -1
- package/docs/TunnelStatus.md +1 -1
- package/docs/TunnelSummary.md +1 -1
- package/docs/TunnelsApi.md +18 -18
- package/docs/UpdateEnvironmentRequest.md +1 -1
- package/docs/UpdateGroupRequest.md +1 -1
- package/docs/UpdateLabelsRequest.md +1 -1
- package/docs/UpdateLabelsResponse.md +1 -1
- package/docs/UpdateNotifierRequest.md +1 -1
- package/docs/UpdateProjectRequest.md +1 -1
- package/docs/UpdateUserRequest.md +1 -1
- package/docs/UpdateVariableRequest.md +1 -1
- package/docs/UserRole.md +1 -1
- package/docs/UserView.md +1 -1
- package/docs/UsersApi.md +18 -18
- package/docs/VariablesApi.md +15 -15
- package/docs/VolumeInfo.md +45 -0
- package/docs/VolumeMount.md +4 -2
- package/docs/VolumeMountType.md +33 -0
- package/docs/VolumeSummary.md +2 -2
- package/docs/VolumesApi.md +163 -13
- package/docs/WebhookInfoResponse.md +1 -1
- package/docs/WebhookResponse.md +1 -1
- package/docs/WebhooksApi.md +9 -9
- package/docs/WorkflowAction.md +1 -1
- package/docs/WorkflowActionOneOf.md +1 -1
- package/docs/WorkflowActionOneOf1.md +1 -1
- package/docs/WorkflowActionOneOf2.md +1 -1
- package/docs/WorkflowActionOneOf3.md +1 -1
- package/docs/WorkflowRun.md +1 -1
- package/docs/WorkflowRunStatus.md +1 -1
- package/docs/WorkflowStep.md +1 -1
- package/docs/WorkflowsApi.md +18 -18
- package/package.json +1 -1
- package/src/apis/AuthenticationApi.ts +140 -0
- package/src/apis/ContainerNetworksApi.ts +418 -0
- package/src/apis/ContainersApi.ts +19 -4
- package/src/apis/EventsApi.ts +82 -0
- package/src/apis/PermissionsApi.ts +59 -0
- package/src/apis/SecretsApi.ts +151 -0
- package/src/apis/VolumesApi.ts +133 -10
- package/src/apis/index.ts +2 -0
- package/src/models/BridgeNetwork.ts +127 -0
- package/src/models/BridgeNetworkAttachment.ts +90 -0
- package/src/models/BridgeNetworkDetails.ts +143 -0
- package/src/models/BridgeNetworkDriver.ts +53 -0
- package/src/models/ConnectBridgeNetworkRequest.ts +83 -0
- package/src/models/ContainerEvent.ts +137 -0
- package/src/models/ContainerEventKind.ts +55 -0
- package/src/models/ContainerHealthInfo.ts +91 -0
- package/src/models/ContainerInfo.ts +69 -0
- package/src/models/ContainerRestartKind.ts +55 -0
- package/src/models/ContainerRestartPolicy.ts +100 -0
- package/src/models/ContainerWaitResponse.ts +36 -2
- package/src/models/CreateBridgeNetworkRequest.ts +109 -0
- package/src/models/CreateContainerRequest.ts +125 -0
- package/src/models/CreateVolumeRequest.ts +92 -0
- package/src/models/DisconnectBridgeNetworkRequest.ts +74 -0
- package/src/models/HealthCheckRequest.ts +144 -0
- package/src/models/NetworkAttachmentInfo.ts +87 -0
- package/src/models/NetworkAttachmentRequest.ts +89 -0
- package/src/models/OidcCallbackResponse.ts +94 -0
- package/src/models/OidcProviderPublic.ts +76 -0
- package/src/models/PortMapping.ts +104 -0
- package/src/models/PortProtocol.ts +53 -0
- package/src/models/PullImageRequest.ts +29 -0
- package/src/models/RegistryAuth.ts +100 -0
- package/src/models/RegistryAuthType.ts +53 -0
- package/src/models/RevealAllSecretsResponse.ts +76 -0
- package/src/models/RotateSecretRequest.ts +66 -0
- package/src/models/RotateSecretResponse.ts +85 -0
- package/src/models/VolumeInfo.ts +114 -0
- package/src/models/VolumeMount.ts +28 -5
- package/src/models/VolumeMountType.ts +58 -0
- package/src/models/VolumeSummary.ts +7 -4
- package/src/models/index.ts +27 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Transport protocol for a published container port.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PortProtocol = {
|
|
21
|
+
Tcp: 'tcp',
|
|
22
|
+
Udp: 'udp'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PortProtocol = typeof PortProtocol[keyof typeof PortProtocol];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPortProtocol(value: any): boolean {
|
|
28
|
+
for (const key in PortProtocol) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PortProtocol, key)) {
|
|
30
|
+
if (PortProtocol[key as keyof typeof PortProtocol] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PortProtocolFromJSON(json: any): PortProtocol {
|
|
39
|
+
return PortProtocolFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PortProtocolFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortProtocol {
|
|
43
|
+
return json as PortProtocol;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PortProtocolToJSON(value?: PortProtocol | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PortProtocolToJSONTyped(value: any, ignoreDiscriminator: boolean): PortProtocol {
|
|
51
|
+
return value as PortProtocol;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RegistryAuth } from './RegistryAuth';
|
|
17
|
+
import {
|
|
18
|
+
RegistryAuthFromJSON,
|
|
19
|
+
RegistryAuthFromJSONTyped,
|
|
20
|
+
RegistryAuthToJSON,
|
|
21
|
+
RegistryAuthToJSONTyped,
|
|
22
|
+
} from './RegistryAuth';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Request body for [`pull_image_handler`]. Blocking pull of an OCI image.
|
|
18
26
|
* @export
|
|
@@ -32,6 +40,23 @@ export interface PullImageRequest {
|
|
|
32
40
|
* @memberof PullImageRequest
|
|
33
41
|
*/
|
|
34
42
|
reference: string;
|
|
43
|
+
/**
|
|
44
|
+
* Inline Docker/OCI registry credentials used for this pull only. Not
|
|
45
|
+
* persisted, never logged, never echoed back on a response. Takes
|
|
46
|
+
* precedence over `registry_credential_id`.
|
|
47
|
+
* @type {RegistryAuth}
|
|
48
|
+
* @memberof PullImageRequest
|
|
49
|
+
*/
|
|
50
|
+
registryAuth?: RegistryAuth | null;
|
|
51
|
+
/**
|
|
52
|
+
* Id of a persisted registry credential (from
|
|
53
|
+
* `POST /api/v1/credentials/registry`) to use for this pull. Ignored
|
|
54
|
+
* when [`Self::registry_auth`] is also supplied (inline auth wins).
|
|
55
|
+
* Requires the daemon to be configured with a credential store.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PullImageRequest
|
|
58
|
+
*/
|
|
59
|
+
registryCredentialId?: string | null;
|
|
35
60
|
}
|
|
36
61
|
|
|
37
62
|
/**
|
|
@@ -54,6 +79,8 @@ export function PullImageRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
54
79
|
|
|
55
80
|
'pullPolicy': json['pull_policy'] == null ? undefined : json['pull_policy'],
|
|
56
81
|
'reference': json['reference'],
|
|
82
|
+
'registryAuth': json['registry_auth'] == null ? undefined : RegistryAuthFromJSON(json['registry_auth']),
|
|
83
|
+
'registryCredentialId': json['registry_credential_id'] == null ? undefined : json['registry_credential_id'],
|
|
57
84
|
};
|
|
58
85
|
}
|
|
59
86
|
|
|
@@ -70,6 +97,8 @@ export function PullImageRequestToJSONTyped(value?: PullImageRequest | null, ign
|
|
|
70
97
|
|
|
71
98
|
'pull_policy': value['pullPolicy'],
|
|
72
99
|
'reference': value['reference'],
|
|
100
|
+
'registry_auth': RegistryAuthToJSON(value['registryAuth']),
|
|
101
|
+
'registry_credential_id': value['registryCredentialId'],
|
|
73
102
|
};
|
|
74
103
|
}
|
|
75
104
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RegistryAuthType } from './RegistryAuthType';
|
|
17
|
+
import {
|
|
18
|
+
RegistryAuthTypeFromJSON,
|
|
19
|
+
RegistryAuthTypeFromJSONTyped,
|
|
20
|
+
RegistryAuthTypeToJSON,
|
|
21
|
+
RegistryAuthTypeToJSONTyped,
|
|
22
|
+
} from './RegistryAuthType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Inline Docker/OCI registry credentials attached to a single pull request.
|
|
26
|
+
*
|
|
27
|
+
* Prefer persistent credentials via `/api/v1/credentials/registry` for
|
|
28
|
+
* long-lived services. Use this inline form for one-off pulls (e.g. CI
|
|
29
|
+
* runners fetching a private image for a single job) where persisting a
|
|
30
|
+
* credential is undesirable.
|
|
31
|
+
* @export
|
|
32
|
+
* @interface RegistryAuth
|
|
33
|
+
*/
|
|
34
|
+
export interface RegistryAuth {
|
|
35
|
+
/**
|
|
36
|
+
* Which authentication scheme to use against the registry.
|
|
37
|
+
* @type {RegistryAuthType}
|
|
38
|
+
* @memberof RegistryAuth
|
|
39
|
+
*/
|
|
40
|
+
authType?: RegistryAuthType;
|
|
41
|
+
/**
|
|
42
|
+
* Password or bearer token. **Never** logged or returned on any
|
|
43
|
+
* response — consumed once and dropped.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RegistryAuth
|
|
46
|
+
*/
|
|
47
|
+
password: string;
|
|
48
|
+
/**
|
|
49
|
+
* Username for the registry (for basic auth) or a placeholder
|
|
50
|
+
* identifier when `auth_type == Token`.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof RegistryAuth
|
|
53
|
+
*/
|
|
54
|
+
username: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the RegistryAuth interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfRegistryAuth(value: object): value is RegistryAuth {
|
|
63
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
64
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RegistryAuthFromJSON(json: any): RegistryAuth {
|
|
69
|
+
return RegistryAuthFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RegistryAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryAuth {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'authType': json['auth_type'] == null ? undefined : RegistryAuthTypeFromJSON(json['auth_type']),
|
|
79
|
+
'password': json['password'],
|
|
80
|
+
'username': json['username'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function RegistryAuthToJSON(json: any): RegistryAuth {
|
|
85
|
+
return RegistryAuthToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function RegistryAuthToJSONTyped(value?: RegistryAuth | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'auth_type': RegistryAuthTypeToJSON(value['authType']),
|
|
96
|
+
'password': value['password'],
|
|
97
|
+
'username': value['username'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Authentication scheme for a [`RegistryAuth`].
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const RegistryAuthType = {
|
|
21
|
+
Basic: 'basic',
|
|
22
|
+
Token: 'token'
|
|
23
|
+
} as const;
|
|
24
|
+
export type RegistryAuthType = typeof RegistryAuthType[keyof typeof RegistryAuthType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfRegistryAuthType(value: any): boolean {
|
|
28
|
+
for (const key in RegistryAuthType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(RegistryAuthType, key)) {
|
|
30
|
+
if (RegistryAuthType[key as keyof typeof RegistryAuthType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RegistryAuthTypeFromJSON(json: any): RegistryAuthType {
|
|
39
|
+
return RegistryAuthTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RegistryAuthTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryAuthType {
|
|
43
|
+
return json as RegistryAuthType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function RegistryAuthTypeToJSON(value?: RegistryAuthType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function RegistryAuthTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): RegistryAuthType {
|
|
51
|
+
return value as RegistryAuthType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response for the batch reveal endpoint — returns every secret in an env as plaintext.
|
|
18
|
+
* Admin-only for now (Phase 3 will gate this on per-env Read permission instead).
|
|
19
|
+
* @export
|
|
20
|
+
* @interface RevealAllSecretsResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface RevealAllSecretsResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The environment id the secrets were revealed from.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RevealAllSecretsResponse
|
|
27
|
+
*/
|
|
28
|
+
environment: string;
|
|
29
|
+
/**
|
|
30
|
+
* Name → plaintext value map. Includes every secret in the scope.
|
|
31
|
+
* @type {{ [key: string]: string; }}
|
|
32
|
+
* @memberof RevealAllSecretsResponse
|
|
33
|
+
*/
|
|
34
|
+
secrets: { [key: string]: string; };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the RevealAllSecretsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfRevealAllSecretsResponse(value: object): value is RevealAllSecretsResponse {
|
|
41
|
+
if (!('environment' in value) || value['environment'] === undefined) return false;
|
|
42
|
+
if (!('secrets' in value) || value['secrets'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function RevealAllSecretsResponseFromJSON(json: any): RevealAllSecretsResponse {
|
|
47
|
+
return RevealAllSecretsResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function RevealAllSecretsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevealAllSecretsResponse {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'environment': json['environment'],
|
|
57
|
+
'secrets': json['secrets'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function RevealAllSecretsResponseToJSON(json: any): RevealAllSecretsResponse {
|
|
62
|
+
return RevealAllSecretsResponseToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RevealAllSecretsResponseToJSONTyped(value?: RevealAllSecretsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'environment': value['environment'],
|
|
73
|
+
'secrets': value['secrets'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for secret rotation.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RotateSecretRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RotateSecretRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The new secret value (will be encrypted at rest).
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RotateSecretRequest
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RotateSecretRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRotateSecretRequest(value: object): value is RotateSecretRequest {
|
|
34
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RotateSecretRequestFromJSON(json: any): RotateSecretRequest {
|
|
39
|
+
return RotateSecretRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RotateSecretRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotateSecretRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'value': json['value'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RotateSecretRequestToJSON(json: any): RotateSecretRequest {
|
|
53
|
+
return RotateSecretRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function RotateSecretRequestToJSONTyped(value?: RotateSecretRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'value': value['value'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response returned by the rotate endpoint.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RotateSecretResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface RotateSecretResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The secret name.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RotateSecretResponse
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Version after rotation.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof RotateSecretResponse
|
|
32
|
+
*/
|
|
33
|
+
newVersion: number;
|
|
34
|
+
/**
|
|
35
|
+
* Version prior to rotation. `None` if the secret did not exist (won't
|
|
36
|
+
* happen today — rotate rejects missing secrets — but preserved for
|
|
37
|
+
* forward compatibility).
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RotateSecretResponse
|
|
40
|
+
*/
|
|
41
|
+
previousVersion?: number | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RotateSecretResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRotateSecretResponse(value: object): value is RotateSecretResponse {
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
if (!('newVersion' in value) || value['newVersion'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RotateSecretResponseFromJSON(json: any): RotateSecretResponse {
|
|
54
|
+
return RotateSecretResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RotateSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotateSecretResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'newVersion': json['new_version'],
|
|
65
|
+
'previousVersion': json['previous_version'] == null ? undefined : json['previous_version'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RotateSecretResponseToJSON(json: any): RotateSecretResponse {
|
|
70
|
+
return RotateSecretResponseToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RotateSecretResponseToJSONTyped(value?: RotateSecretResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'new_version': value['newVersion'],
|
|
82
|
+
'previous_version': value['previousVersion'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Full volume response shape used by the list, inspect, and create
|
|
18
|
+
* endpoints.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface VolumeInfo
|
|
21
|
+
*/
|
|
22
|
+
export interface VolumeInfo {
|
|
23
|
+
/**
|
|
24
|
+
* RFC 3339 creation timestamp. For volumes without a sidecar this is
|
|
25
|
+
* the directory's mtime (best-effort).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VolumeInfo
|
|
28
|
+
*/
|
|
29
|
+
createdAt: string;
|
|
30
|
+
/**
|
|
31
|
+
* Container IDs currently mounting this volume. Empty when no
|
|
32
|
+
* [`VolumeUsageSource`] is wired.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof VolumeInfo
|
|
35
|
+
*/
|
|
36
|
+
inUseBy?: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Labels from the sidecar. Empty when no sidecar is present.
|
|
39
|
+
* @type {{ [key: string]: string; }}
|
|
40
|
+
* @memberof VolumeInfo
|
|
41
|
+
*/
|
|
42
|
+
labels?: { [key: string]: string; };
|
|
43
|
+
/**
|
|
44
|
+
* Volume name (directory name).
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof VolumeInfo
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Host filesystem path.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof VolumeInfo
|
|
53
|
+
*/
|
|
54
|
+
path: string;
|
|
55
|
+
/**
|
|
56
|
+
* Approximate size in bytes (sum of regular files in the volume
|
|
57
|
+
* directory). `None` when the directory could not be walked, or for
|
|
58
|
+
* freshly created empty volumes where `0` would be equally
|
|
59
|
+
* informative.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof VolumeInfo
|
|
62
|
+
*/
|
|
63
|
+
sizeBytes?: number | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the VolumeInfo interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfVolumeInfo(value: object): value is VolumeInfo {
|
|
70
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function VolumeInfoFromJSON(json: any): VolumeInfo {
|
|
77
|
+
return VolumeInfoFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function VolumeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VolumeInfo {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'createdAt': json['created_at'],
|
|
87
|
+
'inUseBy': json['in_use_by'] == null ? undefined : json['in_use_by'],
|
|
88
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
89
|
+
'name': json['name'],
|
|
90
|
+
'path': json['path'],
|
|
91
|
+
'sizeBytes': json['size_bytes'] == null ? undefined : json['size_bytes'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function VolumeInfoToJSON(json: any): VolumeInfo {
|
|
96
|
+
return VolumeInfoToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function VolumeInfoToJSONTyped(value?: VolumeInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'created_at': value['createdAt'],
|
|
107
|
+
'in_use_by': value['inUseBy'],
|
|
108
|
+
'labels': value['labels'],
|
|
109
|
+
'name': value['name'],
|
|
110
|
+
'path': value['path'],
|
|
111
|
+
'size_bytes': value['sizeBytes'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -13,8 +13,22 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { VolumeMountType } from './VolumeMountType';
|
|
17
|
+
import {
|
|
18
|
+
VolumeMountTypeFromJSON,
|
|
19
|
+
VolumeMountTypeFromJSONTyped,
|
|
20
|
+
VolumeMountTypeToJSON,
|
|
21
|
+
VolumeMountTypeToJSONTyped,
|
|
22
|
+
} from './VolumeMountType';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
|
-
* Volume mount specification
|
|
25
|
+
* Volume mount specification.
|
|
26
|
+
*
|
|
27
|
+
* The `type` field (a Docker-compatible discriminator) selects how `source`
|
|
28
|
+
* is interpreted:
|
|
29
|
+
* - `"bind"` (default): `source` is an absolute host path.
|
|
30
|
+
* - `"volume"`: `source` is a named-volume identifier.
|
|
31
|
+
* - `"tmpfs"`: no `source`; a memory-backed mount is provisioned.
|
|
18
32
|
* @export
|
|
19
33
|
* @interface VolumeMount
|
|
20
34
|
*/
|
|
@@ -26,24 +40,31 @@ export interface VolumeMount {
|
|
|
26
40
|
*/
|
|
27
41
|
readonly?: boolean;
|
|
28
42
|
/**
|
|
29
|
-
* Host path
|
|
43
|
+
* Host path (bind), volume name (volume), or unused (tmpfs).
|
|
30
44
|
* @type {string}
|
|
31
45
|
* @memberof VolumeMount
|
|
32
46
|
*/
|
|
33
|
-
source
|
|
47
|
+
source?: string | null;
|
|
34
48
|
/**
|
|
35
49
|
* Container mount path
|
|
36
50
|
* @type {string}
|
|
37
51
|
* @memberof VolumeMount
|
|
38
52
|
*/
|
|
39
53
|
target: string;
|
|
54
|
+
/**
|
|
55
|
+
* Mount kind. Omit (or `"bind"`) for legacy host-path binds.
|
|
56
|
+
* @type {VolumeMountType}
|
|
57
|
+
* @memberof VolumeMount
|
|
58
|
+
*/
|
|
59
|
+
type?: VolumeMountType | null;
|
|
40
60
|
}
|
|
41
61
|
|
|
62
|
+
|
|
63
|
+
|
|
42
64
|
/**
|
|
43
65
|
* Check if a given object implements the VolumeMount interface.
|
|
44
66
|
*/
|
|
45
67
|
export function instanceOfVolumeMount(value: object): value is VolumeMount {
|
|
46
|
-
if (!('source' in value) || value['source'] === undefined) return false;
|
|
47
68
|
if (!('target' in value) || value['target'] === undefined) return false;
|
|
48
69
|
return true;
|
|
49
70
|
}
|
|
@@ -59,8 +80,9 @@ export function VolumeMountFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
59
80
|
return {
|
|
60
81
|
|
|
61
82
|
'readonly': json['readonly'] == null ? undefined : json['readonly'],
|
|
62
|
-
'source': json['source'],
|
|
83
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
63
84
|
'target': json['target'],
|
|
85
|
+
'type': json['type'] == null ? undefined : VolumeMountTypeFromJSON(json['type']),
|
|
64
86
|
};
|
|
65
87
|
}
|
|
66
88
|
|
|
@@ -78,6 +100,7 @@ export function VolumeMountToJSONTyped(value?: VolumeMount | null, ignoreDiscrim
|
|
|
78
100
|
'readonly': value['readonly'],
|
|
79
101
|
'source': value['source'],
|
|
80
102
|
'target': value['target'],
|
|
103
|
+
'type': VolumeMountTypeToJSON(value['type']),
|
|
81
104
|
};
|
|
82
105
|
}
|
|
83
106
|
|