@zlayer/api-client 0.10.86 → 0.11.7
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,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { RegistryAuthType } from './RegistryAuthType';
|
|
13
|
+
/**
|
|
14
|
+
* Inline Docker/OCI registry credentials attached to a single pull request.
|
|
15
|
+
*
|
|
16
|
+
* Prefer persistent credentials via `/api/v1/credentials/registry` for
|
|
17
|
+
* long-lived services. Use this inline form for one-off pulls (e.g. CI
|
|
18
|
+
* runners fetching a private image for a single job) where persisting a
|
|
19
|
+
* credential is undesirable.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface RegistryAuth
|
|
22
|
+
*/
|
|
23
|
+
export interface RegistryAuth {
|
|
24
|
+
/**
|
|
25
|
+
* Which authentication scheme to use against the registry.
|
|
26
|
+
* @type {RegistryAuthType}
|
|
27
|
+
* @memberof RegistryAuth
|
|
28
|
+
*/
|
|
29
|
+
authType?: RegistryAuthType;
|
|
30
|
+
/**
|
|
31
|
+
* Password or bearer token. **Never** logged or returned on any
|
|
32
|
+
* response — consumed once and dropped.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RegistryAuth
|
|
35
|
+
*/
|
|
36
|
+
password: string;
|
|
37
|
+
/**
|
|
38
|
+
* Username for the registry (for basic auth) or a placeholder
|
|
39
|
+
* identifier when `auth_type == Token`.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof RegistryAuth
|
|
42
|
+
*/
|
|
43
|
+
username: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the RegistryAuth interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfRegistryAuth(value: object): value is RegistryAuth;
|
|
49
|
+
export declare function RegistryAuthFromJSON(json: any): RegistryAuth;
|
|
50
|
+
export declare function RegistryAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryAuth;
|
|
51
|
+
export declare function RegistryAuthToJSON(json: any): RegistryAuth;
|
|
52
|
+
export declare function RegistryAuthToJSONTyped(value?: RegistryAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRegistryAuth = instanceOfRegistryAuth;
|
|
17
|
+
exports.RegistryAuthFromJSON = RegistryAuthFromJSON;
|
|
18
|
+
exports.RegistryAuthFromJSONTyped = RegistryAuthFromJSONTyped;
|
|
19
|
+
exports.RegistryAuthToJSON = RegistryAuthToJSON;
|
|
20
|
+
exports.RegistryAuthToJSONTyped = RegistryAuthToJSONTyped;
|
|
21
|
+
const RegistryAuthType_1 = require("./RegistryAuthType");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RegistryAuth interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRegistryAuth(value) {
|
|
26
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RegistryAuthFromJSON(json) {
|
|
33
|
+
return RegistryAuthFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RegistryAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'authType': json['auth_type'] == null ? undefined : (0, RegistryAuthType_1.RegistryAuthTypeFromJSON)(json['auth_type']),
|
|
41
|
+
'password': json['password'],
|
|
42
|
+
'username': json['username'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function RegistryAuthToJSON(json) {
|
|
46
|
+
return RegistryAuthToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function RegistryAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'auth_type': (0, RegistryAuthType_1.RegistryAuthTypeToJSON)(value['authType']),
|
|
54
|
+
'password': value['password'],
|
|
55
|
+
'username': value['username'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Authentication scheme for a [`RegistryAuth`].
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const RegistryAuthType: {
|
|
17
|
+
readonly Basic: "basic";
|
|
18
|
+
readonly Token: "token";
|
|
19
|
+
};
|
|
20
|
+
export type RegistryAuthType = typeof RegistryAuthType[keyof typeof RegistryAuthType];
|
|
21
|
+
export declare function instanceOfRegistryAuthType(value: any): boolean;
|
|
22
|
+
export declare function RegistryAuthTypeFromJSON(json: any): RegistryAuthType;
|
|
23
|
+
export declare function RegistryAuthTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistryAuthType;
|
|
24
|
+
export declare function RegistryAuthTypeToJSON(value?: RegistryAuthType | null): any;
|
|
25
|
+
export declare function RegistryAuthTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): RegistryAuthType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RegistryAuthType = void 0;
|
|
17
|
+
exports.instanceOfRegistryAuthType = instanceOfRegistryAuthType;
|
|
18
|
+
exports.RegistryAuthTypeFromJSON = RegistryAuthTypeFromJSON;
|
|
19
|
+
exports.RegistryAuthTypeFromJSONTyped = RegistryAuthTypeFromJSONTyped;
|
|
20
|
+
exports.RegistryAuthTypeToJSON = RegistryAuthTypeToJSON;
|
|
21
|
+
exports.RegistryAuthTypeToJSONTyped = RegistryAuthTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Authentication scheme for a [`RegistryAuth`].
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RegistryAuthType = {
|
|
27
|
+
Basic: 'basic',
|
|
28
|
+
Token: 'token'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfRegistryAuthType(value) {
|
|
31
|
+
for (const key in exports.RegistryAuthType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.RegistryAuthType, key)) {
|
|
33
|
+
if (exports.RegistryAuthType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function RegistryAuthTypeFromJSON(json) {
|
|
41
|
+
return RegistryAuthTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RegistryAuthTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function RegistryAuthTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function RegistryAuthTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response for the batch reveal endpoint — returns every secret in an env as plaintext.
|
|
14
|
+
* Admin-only for now (Phase 3 will gate this on per-env Read permission instead).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RevealAllSecretsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RevealAllSecretsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The environment id the secrets were revealed from.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RevealAllSecretsResponse
|
|
23
|
+
*/
|
|
24
|
+
environment: string;
|
|
25
|
+
/**
|
|
26
|
+
* Name → plaintext value map. Includes every secret in the scope.
|
|
27
|
+
* @type {{ [key: string]: string; }}
|
|
28
|
+
* @memberof RevealAllSecretsResponse
|
|
29
|
+
*/
|
|
30
|
+
secrets: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the RevealAllSecretsResponse interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfRevealAllSecretsResponse(value: object): value is RevealAllSecretsResponse;
|
|
38
|
+
export declare function RevealAllSecretsResponseFromJSON(json: any): RevealAllSecretsResponse;
|
|
39
|
+
export declare function RevealAllSecretsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevealAllSecretsResponse;
|
|
40
|
+
export declare function RevealAllSecretsResponseToJSON(json: any): RevealAllSecretsResponse;
|
|
41
|
+
export declare function RevealAllSecretsResponseToJSONTyped(value?: RevealAllSecretsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRevealAllSecretsResponse = instanceOfRevealAllSecretsResponse;
|
|
17
|
+
exports.RevealAllSecretsResponseFromJSON = RevealAllSecretsResponseFromJSON;
|
|
18
|
+
exports.RevealAllSecretsResponseFromJSONTyped = RevealAllSecretsResponseFromJSONTyped;
|
|
19
|
+
exports.RevealAllSecretsResponseToJSON = RevealAllSecretsResponseToJSON;
|
|
20
|
+
exports.RevealAllSecretsResponseToJSONTyped = RevealAllSecretsResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RevealAllSecretsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRevealAllSecretsResponse(value) {
|
|
25
|
+
if (!('environment' in value) || value['environment'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function RevealAllSecretsResponseFromJSON(json) {
|
|
32
|
+
return RevealAllSecretsResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function RevealAllSecretsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'environment': json['environment'],
|
|
40
|
+
'secrets': json['secrets'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RevealAllSecretsResponseToJSON(json) {
|
|
44
|
+
return RevealAllSecretsResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RevealAllSecretsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'environment': value['environment'],
|
|
52
|
+
'secrets': value['secrets'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request body for secret rotation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RotateSecretRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RotateSecretRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The new secret value (will be encrypted at rest).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RotateSecretRequest
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RotateSecretRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRotateSecretRequest(value: object): value is RotateSecretRequest;
|
|
29
|
+
export declare function RotateSecretRequestFromJSON(json: any): RotateSecretRequest;
|
|
30
|
+
export declare function RotateSecretRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotateSecretRequest;
|
|
31
|
+
export declare function RotateSecretRequestToJSON(json: any): RotateSecretRequest;
|
|
32
|
+
export declare function RotateSecretRequestToJSONTyped(value?: RotateSecretRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRotateSecretRequest = instanceOfRotateSecretRequest;
|
|
17
|
+
exports.RotateSecretRequestFromJSON = RotateSecretRequestFromJSON;
|
|
18
|
+
exports.RotateSecretRequestFromJSONTyped = RotateSecretRequestFromJSONTyped;
|
|
19
|
+
exports.RotateSecretRequestToJSON = RotateSecretRequestToJSON;
|
|
20
|
+
exports.RotateSecretRequestToJSONTyped = RotateSecretRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RotateSecretRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRotateSecretRequest(value) {
|
|
25
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RotateSecretRequestFromJSON(json) {
|
|
30
|
+
return RotateSecretRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RotateSecretRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'value': json['value'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RotateSecretRequestToJSON(json) {
|
|
41
|
+
return RotateSecretRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RotateSecretRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'value': value['value'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response returned by the rotate endpoint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RotateSecretResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface RotateSecretResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The secret name.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RotateSecretResponse
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version after rotation.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RotateSecretResponse
|
|
28
|
+
*/
|
|
29
|
+
newVersion: number;
|
|
30
|
+
/**
|
|
31
|
+
* Version prior to rotation. `None` if the secret did not exist (won't
|
|
32
|
+
* happen today — rotate rejects missing secrets — but preserved for
|
|
33
|
+
* forward compatibility).
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof RotateSecretResponse
|
|
36
|
+
*/
|
|
37
|
+
previousVersion?: number | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the RotateSecretResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfRotateSecretResponse(value: object): value is RotateSecretResponse;
|
|
43
|
+
export declare function RotateSecretResponseFromJSON(json: any): RotateSecretResponse;
|
|
44
|
+
export declare function RotateSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotateSecretResponse;
|
|
45
|
+
export declare function RotateSecretResponseToJSON(json: any): RotateSecretResponse;
|
|
46
|
+
export declare function RotateSecretResponseToJSONTyped(value?: RotateSecretResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRotateSecretResponse = instanceOfRotateSecretResponse;
|
|
17
|
+
exports.RotateSecretResponseFromJSON = RotateSecretResponseFromJSON;
|
|
18
|
+
exports.RotateSecretResponseFromJSONTyped = RotateSecretResponseFromJSONTyped;
|
|
19
|
+
exports.RotateSecretResponseToJSON = RotateSecretResponseToJSON;
|
|
20
|
+
exports.RotateSecretResponseToJSONTyped = RotateSecretResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RotateSecretResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRotateSecretResponse(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('newVersion' in value) || value['newVersion'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function RotateSecretResponseFromJSON(json) {
|
|
32
|
+
return RotateSecretResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function RotateSecretResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'newVersion': json['new_version'],
|
|
41
|
+
'previousVersion': json['previous_version'] == null ? undefined : json['previous_version'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RotateSecretResponseToJSON(json) {
|
|
45
|
+
return RotateSecretResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RotateSecretResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'new_version': value['newVersion'],
|
|
54
|
+
'previous_version': value['previousVersion'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZLayer API
|
|
3
|
+
* Container orchestration API for ZLayer
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Full volume response shape used by the list, inspect, and create
|
|
14
|
+
* endpoints.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VolumeInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface VolumeInfo {
|
|
19
|
+
/**
|
|
20
|
+
* RFC 3339 creation timestamp. For volumes without a sidecar this is
|
|
21
|
+
* the directory's mtime (best-effort).
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof VolumeInfo
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* Container IDs currently mounting this volume. Empty when no
|
|
28
|
+
* [`VolumeUsageSource`] is wired.
|
|
29
|
+
* @type {Array<string>}
|
|
30
|
+
* @memberof VolumeInfo
|
|
31
|
+
*/
|
|
32
|
+
inUseBy?: Array<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Labels from the sidecar. Empty when no sidecar is present.
|
|
35
|
+
* @type {{ [key: string]: string; }}
|
|
36
|
+
* @memberof VolumeInfo
|
|
37
|
+
*/
|
|
38
|
+
labels?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Volume name (directory name).
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof VolumeInfo
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Host filesystem path.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof VolumeInfo
|
|
51
|
+
*/
|
|
52
|
+
path: string;
|
|
53
|
+
/**
|
|
54
|
+
* Approximate size in bytes (sum of regular files in the volume
|
|
55
|
+
* directory). `None` when the directory could not be walked, or for
|
|
56
|
+
* freshly created empty volumes where `0` would be equally
|
|
57
|
+
* informative.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof VolumeInfo
|
|
60
|
+
*/
|
|
61
|
+
sizeBytes?: number | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the VolumeInfo interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfVolumeInfo(value: object): value is VolumeInfo;
|
|
67
|
+
export declare function VolumeInfoFromJSON(json: any): VolumeInfo;
|
|
68
|
+
export declare function VolumeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VolumeInfo;
|
|
69
|
+
export declare function VolumeInfoToJSON(json: any): VolumeInfo;
|
|
70
|
+
export declare function VolumeInfoToJSONTyped(value?: VolumeInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ZLayer API
|
|
6
|
+
* Container orchestration API for ZLayer
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfVolumeInfo = instanceOfVolumeInfo;
|
|
17
|
+
exports.VolumeInfoFromJSON = VolumeInfoFromJSON;
|
|
18
|
+
exports.VolumeInfoFromJSONTyped = VolumeInfoFromJSONTyped;
|
|
19
|
+
exports.VolumeInfoToJSON = VolumeInfoToJSON;
|
|
20
|
+
exports.VolumeInfoToJSONTyped = VolumeInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VolumeInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVolumeInfo(value) {
|
|
25
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function VolumeInfoFromJSON(json) {
|
|
34
|
+
return VolumeInfoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function VolumeInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'createdAt': json['created_at'],
|
|
42
|
+
'inUseBy': json['in_use_by'] == null ? undefined : json['in_use_by'],
|
|
43
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'path': json['path'],
|
|
46
|
+
'sizeBytes': json['size_bytes'] == null ? undefined : json['size_bytes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function VolumeInfoToJSON(json) {
|
|
50
|
+
return VolumeInfoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function VolumeInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'created_at': value['createdAt'],
|
|
58
|
+
'in_use_by': value['inUseBy'],
|
|
59
|
+
'labels': value['labels'],
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'path': value['path'],
|
|
62
|
+
'size_bytes': value['sizeBytes'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -9,8 +9,15 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VolumeMountType } from './VolumeMountType';
|
|
12
13
|
/**
|
|
13
|
-
* Volume mount specification
|
|
14
|
+
* Volume mount specification.
|
|
15
|
+
*
|
|
16
|
+
* The `type` field (a Docker-compatible discriminator) selects how `source`
|
|
17
|
+
* is interpreted:
|
|
18
|
+
* - `"bind"` (default): `source` is an absolute host path.
|
|
19
|
+
* - `"volume"`: `source` is a named-volume identifier.
|
|
20
|
+
* - `"tmpfs"`: no `source`; a memory-backed mount is provisioned.
|
|
14
21
|
* @export
|
|
15
22
|
* @interface VolumeMount
|
|
16
23
|
*/
|
|
@@ -22,17 +29,23 @@ export interface VolumeMount {
|
|
|
22
29
|
*/
|
|
23
30
|
readonly?: boolean;
|
|
24
31
|
/**
|
|
25
|
-
* Host path
|
|
32
|
+
* Host path (bind), volume name (volume), or unused (tmpfs).
|
|
26
33
|
* @type {string}
|
|
27
34
|
* @memberof VolumeMount
|
|
28
35
|
*/
|
|
29
|
-
source
|
|
36
|
+
source?: string | null;
|
|
30
37
|
/**
|
|
31
38
|
* Container mount path
|
|
32
39
|
* @type {string}
|
|
33
40
|
* @memberof VolumeMount
|
|
34
41
|
*/
|
|
35
42
|
target: string;
|
|
43
|
+
/**
|
|
44
|
+
* Mount kind. Omit (or `"bind"`) for legacy host-path binds.
|
|
45
|
+
* @type {VolumeMountType}
|
|
46
|
+
* @memberof VolumeMount
|
|
47
|
+
*/
|
|
48
|
+
type?: VolumeMountType | null;
|
|
36
49
|
}
|
|
37
50
|
/**
|
|
38
51
|
* Check if a given object implements the VolumeMount interface.
|
|
@@ -18,12 +18,11 @@ exports.VolumeMountFromJSON = VolumeMountFromJSON;
|
|
|
18
18
|
exports.VolumeMountFromJSONTyped = VolumeMountFromJSONTyped;
|
|
19
19
|
exports.VolumeMountToJSON = VolumeMountToJSON;
|
|
20
20
|
exports.VolumeMountToJSONTyped = VolumeMountToJSONTyped;
|
|
21
|
+
const VolumeMountType_1 = require("./VolumeMountType");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the VolumeMount interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfVolumeMount(value) {
|
|
25
|
-
if (!('source' in value) || value['source'] === undefined)
|
|
26
|
-
return false;
|
|
27
26
|
if (!('target' in value) || value['target'] === undefined)
|
|
28
27
|
return false;
|
|
29
28
|
return true;
|
|
@@ -37,8 +36,9 @@ function VolumeMountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
36
|
}
|
|
38
37
|
return {
|
|
39
38
|
'readonly': json['readonly'] == null ? undefined : json['readonly'],
|
|
40
|
-
'source': json['source'],
|
|
39
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
41
40
|
'target': json['target'],
|
|
41
|
+
'type': json['type'] == null ? undefined : (0, VolumeMountType_1.VolumeMountTypeFromJSON)(json['type']),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function VolumeMountToJSON(json) {
|
|
@@ -52,5 +52,6 @@ function VolumeMountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
52
|
'readonly': value['readonly'],
|
|
53
53
|
'source': value['source'],
|
|
54
54
|
'target': value['target'],
|
|
55
|
+
'type': (0, VolumeMountType_1.VolumeMountTypeToJSON)(value['type']),
|
|
55
56
|
};
|
|
56
57
|
}
|