@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,49 @@
|
|
|
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
|
+
* Per-network attachment entry on [`ContainerInfo::networks`].
|
|
14
|
+
*
|
|
15
|
+
* Populated from the runtime's inspect response — mirrors the subset of
|
|
16
|
+
* bollard's `EndpointSettings` that API clients need to correlate a container
|
|
17
|
+
* with its `container_networks` entries.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NetworkAttachmentInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface NetworkAttachmentInfo {
|
|
22
|
+
/**
|
|
23
|
+
* DNS aliases the container answers to on this network.
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof NetworkAttachmentInfo
|
|
26
|
+
*/
|
|
27
|
+
aliases?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Assigned IPv4 on this network, if any.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NetworkAttachmentInfo
|
|
32
|
+
*/
|
|
33
|
+
ipv4?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Network name as reported by the runtime. Matches the `name` field on
|
|
36
|
+
* entries returned by `GET /api/v1/container-networks`.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof NetworkAttachmentInfo
|
|
39
|
+
*/
|
|
40
|
+
network: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the NetworkAttachmentInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfNetworkAttachmentInfo(value: object): value is NetworkAttachmentInfo;
|
|
46
|
+
export declare function NetworkAttachmentInfoFromJSON(json: any): NetworkAttachmentInfo;
|
|
47
|
+
export declare function NetworkAttachmentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkAttachmentInfo;
|
|
48
|
+
export declare function NetworkAttachmentInfoToJSON(json: any): NetworkAttachmentInfo;
|
|
49
|
+
export declare function NetworkAttachmentInfoToJSONTyped(value?: NetworkAttachmentInfo | 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.instanceOfNetworkAttachmentInfo = instanceOfNetworkAttachmentInfo;
|
|
17
|
+
exports.NetworkAttachmentInfoFromJSON = NetworkAttachmentInfoFromJSON;
|
|
18
|
+
exports.NetworkAttachmentInfoFromJSONTyped = NetworkAttachmentInfoFromJSONTyped;
|
|
19
|
+
exports.NetworkAttachmentInfoToJSON = NetworkAttachmentInfoToJSON;
|
|
20
|
+
exports.NetworkAttachmentInfoToJSONTyped = NetworkAttachmentInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NetworkAttachmentInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNetworkAttachmentInfo(value) {
|
|
25
|
+
if (!('network' in value) || value['network'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function NetworkAttachmentInfoFromJSON(json) {
|
|
30
|
+
return NetworkAttachmentInfoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function NetworkAttachmentInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
38
|
+
'ipv4': json['ipv4'] == null ? undefined : json['ipv4'],
|
|
39
|
+
'network': json['network'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function NetworkAttachmentInfoToJSON(json) {
|
|
43
|
+
return NetworkAttachmentInfoToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NetworkAttachmentInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'aliases': value['aliases'],
|
|
51
|
+
'ipv4': value['ipv4'],
|
|
52
|
+
'network': value['network'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* A request to attach a freshly-created container to a user-defined bridge
|
|
14
|
+
* or overlay network, mirroring the wire-shape used by `POST
|
|
15
|
+
* /api/v1/container-networks/{id_or_name}/connect`.
|
|
16
|
+
*
|
|
17
|
+
* Included on [`CreateContainerRequest::networks`] so callers can wire up
|
|
18
|
+
* every attachment in a single call instead of issuing a separate connect
|
|
19
|
+
* request per network after container create.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface NetworkAttachmentRequest
|
|
22
|
+
*/
|
|
23
|
+
export interface NetworkAttachmentRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Optional DNS aliases for this container on the network.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof NetworkAttachmentRequest
|
|
28
|
+
*/
|
|
29
|
+
aliases?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Optional static IPv4 to pin this container to. Validated as
|
|
32
|
+
* [`std::net::Ipv4Addr`] before the runtime is called.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof NetworkAttachmentRequest
|
|
35
|
+
*/
|
|
36
|
+
ipv4Address?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Bridge-network id or name to attach to.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof NetworkAttachmentRequest
|
|
41
|
+
*/
|
|
42
|
+
network: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the NetworkAttachmentRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfNetworkAttachmentRequest(value: object): value is NetworkAttachmentRequest;
|
|
48
|
+
export declare function NetworkAttachmentRequestFromJSON(json: any): NetworkAttachmentRequest;
|
|
49
|
+
export declare function NetworkAttachmentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkAttachmentRequest;
|
|
50
|
+
export declare function NetworkAttachmentRequestToJSON(json: any): NetworkAttachmentRequest;
|
|
51
|
+
export declare function NetworkAttachmentRequestToJSONTyped(value?: NetworkAttachmentRequest | 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.instanceOfNetworkAttachmentRequest = instanceOfNetworkAttachmentRequest;
|
|
17
|
+
exports.NetworkAttachmentRequestFromJSON = NetworkAttachmentRequestFromJSON;
|
|
18
|
+
exports.NetworkAttachmentRequestFromJSONTyped = NetworkAttachmentRequestFromJSONTyped;
|
|
19
|
+
exports.NetworkAttachmentRequestToJSON = NetworkAttachmentRequestToJSON;
|
|
20
|
+
exports.NetworkAttachmentRequestToJSONTyped = NetworkAttachmentRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NetworkAttachmentRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNetworkAttachmentRequest(value) {
|
|
25
|
+
if (!('network' in value) || value['network'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function NetworkAttachmentRequestFromJSON(json) {
|
|
30
|
+
return NetworkAttachmentRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function NetworkAttachmentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
38
|
+
'ipv4Address': json['ipv4_address'] == null ? undefined : json['ipv4_address'],
|
|
39
|
+
'network': json['network'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function NetworkAttachmentRequestToJSON(json) {
|
|
43
|
+
return NetworkAttachmentRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NetworkAttachmentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'aliases': value['aliases'],
|
|
51
|
+
'ipv4_address': value['ipv4Address'],
|
|
52
|
+
'network': value['network'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { UserView } from './UserView';
|
|
13
|
+
/**
|
|
14
|
+
* Callback response body (returned as JSON unless the operator prefers a
|
|
15
|
+
* redirect; initial integration keeps JSON so the Manager UI can show a
|
|
16
|
+
* welcome screen post-exchange).
|
|
17
|
+
* @export
|
|
18
|
+
* @interface OidcCallbackResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface OidcCallbackResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof OidcCallbackResponse
|
|
25
|
+
*/
|
|
26
|
+
csrfToken: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof OidcCallbackResponse
|
|
31
|
+
*/
|
|
32
|
+
provider: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {UserView}
|
|
36
|
+
* @memberof OidcCallbackResponse
|
|
37
|
+
*/
|
|
38
|
+
user: UserView;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the OidcCallbackResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfOidcCallbackResponse(value: object): value is OidcCallbackResponse;
|
|
44
|
+
export declare function OidcCallbackResponseFromJSON(json: any): OidcCallbackResponse;
|
|
45
|
+
export declare function OidcCallbackResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OidcCallbackResponse;
|
|
46
|
+
export declare function OidcCallbackResponseToJSON(json: any): OidcCallbackResponse;
|
|
47
|
+
export declare function OidcCallbackResponseToJSONTyped(value?: OidcCallbackResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfOidcCallbackResponse = instanceOfOidcCallbackResponse;
|
|
17
|
+
exports.OidcCallbackResponseFromJSON = OidcCallbackResponseFromJSON;
|
|
18
|
+
exports.OidcCallbackResponseFromJSONTyped = OidcCallbackResponseFromJSONTyped;
|
|
19
|
+
exports.OidcCallbackResponseToJSON = OidcCallbackResponseToJSON;
|
|
20
|
+
exports.OidcCallbackResponseToJSONTyped = OidcCallbackResponseToJSONTyped;
|
|
21
|
+
const UserView_1 = require("./UserView");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OidcCallbackResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOidcCallbackResponse(value) {
|
|
26
|
+
if (!('csrfToken' in value) || value['csrfToken'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function OidcCallbackResponseFromJSON(json) {
|
|
35
|
+
return OidcCallbackResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function OidcCallbackResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'csrfToken': json['csrf_token'],
|
|
43
|
+
'provider': json['provider'],
|
|
44
|
+
'user': (0, UserView_1.UserViewFromJSON)(json['user']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function OidcCallbackResponseToJSON(json) {
|
|
48
|
+
return OidcCallbackResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function OidcCallbackResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'csrf_token': value['csrfToken'],
|
|
56
|
+
'provider': value['provider'],
|
|
57
|
+
'user': (0, UserView_1.UserViewToJSON)(value['user']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Public-facing projection — what the Manager UI needs to render a login
|
|
14
|
+
* button. Never includes the client secret.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OidcProviderPublic
|
|
17
|
+
*/
|
|
18
|
+
export interface OidcProviderPublic {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OidcProviderPublic
|
|
23
|
+
*/
|
|
24
|
+
displayName: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OidcProviderPublic
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OidcProviderPublic interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfOidcProviderPublic(value: object): value is OidcProviderPublic;
|
|
36
|
+
export declare function OidcProviderPublicFromJSON(json: any): OidcProviderPublic;
|
|
37
|
+
export declare function OidcProviderPublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): OidcProviderPublic;
|
|
38
|
+
export declare function OidcProviderPublicToJSON(json: any): OidcProviderPublic;
|
|
39
|
+
export declare function OidcProviderPublicToJSONTyped(value?: OidcProviderPublic | 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.instanceOfOidcProviderPublic = instanceOfOidcProviderPublic;
|
|
17
|
+
exports.OidcProviderPublicFromJSON = OidcProviderPublicFromJSON;
|
|
18
|
+
exports.OidcProviderPublicFromJSONTyped = OidcProviderPublicFromJSONTyped;
|
|
19
|
+
exports.OidcProviderPublicToJSON = OidcProviderPublicToJSON;
|
|
20
|
+
exports.OidcProviderPublicToJSONTyped = OidcProviderPublicToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OidcProviderPublic interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOidcProviderPublic(value) {
|
|
25
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OidcProviderPublicFromJSON(json) {
|
|
32
|
+
return OidcProviderPublicFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OidcProviderPublicFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'displayName': json['display_name'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OidcProviderPublicToJSON(json) {
|
|
44
|
+
return OidcProviderPublicToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function OidcProviderPublicToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'display_name': value['displayName'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { PortProtocol } from './PortProtocol';
|
|
13
|
+
/**
|
|
14
|
+
* A single host-to-container port publish rule (Docker's `-p`).
|
|
15
|
+
*
|
|
16
|
+
* When `host_port` is `None` (or explicitly `Some(0)`), the container runtime
|
|
17
|
+
* assigns an ephemeral host port. `host_ip` defaults to `"0.0.0.0"` to bind
|
|
18
|
+
* on all interfaces.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PortMapping
|
|
21
|
+
*/
|
|
22
|
+
export interface PortMapping {
|
|
23
|
+
/**
|
|
24
|
+
* Container-side port.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PortMapping
|
|
27
|
+
*/
|
|
28
|
+
containerPort: number;
|
|
29
|
+
/**
|
|
30
|
+
* Host interface to bind on. Defaults to `"0.0.0.0"` (all interfaces).
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PortMapping
|
|
33
|
+
*/
|
|
34
|
+
hostIp?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Host port. `None` (or zero) means "assign an ephemeral port".
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof PortMapping
|
|
39
|
+
*/
|
|
40
|
+
hostPort?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* Transport protocol (defaults to TCP).
|
|
43
|
+
* @type {PortProtocol}
|
|
44
|
+
* @memberof PortMapping
|
|
45
|
+
*/
|
|
46
|
+
protocol?: PortProtocol;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PortMapping interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfPortMapping(value: object): value is PortMapping;
|
|
52
|
+
export declare function PortMappingFromJSON(json: any): PortMapping;
|
|
53
|
+
export declare function PortMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortMapping;
|
|
54
|
+
export declare function PortMappingToJSON(json: any): PortMapping;
|
|
55
|
+
export declare function PortMappingToJSONTyped(value?: PortMapping | 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.instanceOfPortMapping = instanceOfPortMapping;
|
|
17
|
+
exports.PortMappingFromJSON = PortMappingFromJSON;
|
|
18
|
+
exports.PortMappingFromJSONTyped = PortMappingFromJSONTyped;
|
|
19
|
+
exports.PortMappingToJSON = PortMappingToJSON;
|
|
20
|
+
exports.PortMappingToJSONTyped = PortMappingToJSONTyped;
|
|
21
|
+
const PortProtocol_1 = require("./PortProtocol");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PortMapping interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPortMapping(value) {
|
|
26
|
+
if (!('containerPort' in value) || value['containerPort'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PortMappingFromJSON(json) {
|
|
31
|
+
return PortMappingFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PortMappingFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'containerPort': json['container_port'],
|
|
39
|
+
'hostIp': json['host_ip'] == null ? undefined : json['host_ip'],
|
|
40
|
+
'hostPort': json['host_port'] == null ? undefined : json['host_port'],
|
|
41
|
+
'protocol': json['protocol'] == null ? undefined : (0, PortProtocol_1.PortProtocolFromJSON)(json['protocol']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PortMappingToJSON(json) {
|
|
45
|
+
return PortMappingToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PortMappingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'container_port': value['containerPort'],
|
|
53
|
+
'host_ip': value['hostIp'],
|
|
54
|
+
'host_port': value['hostPort'],
|
|
55
|
+
'protocol': (0, PortProtocol_1.PortProtocolToJSON)(value['protocol']),
|
|
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
|
+
* Transport protocol for a published container port.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PortProtocol: {
|
|
17
|
+
readonly Tcp: "tcp";
|
|
18
|
+
readonly Udp: "udp";
|
|
19
|
+
};
|
|
20
|
+
export type PortProtocol = typeof PortProtocol[keyof typeof PortProtocol];
|
|
21
|
+
export declare function instanceOfPortProtocol(value: any): boolean;
|
|
22
|
+
export declare function PortProtocolFromJSON(json: any): PortProtocol;
|
|
23
|
+
export declare function PortProtocolFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortProtocol;
|
|
24
|
+
export declare function PortProtocolToJSON(value?: PortProtocol | null): any;
|
|
25
|
+
export declare function PortProtocolToJSONTyped(value: any, ignoreDiscriminator: boolean): PortProtocol;
|
|
@@ -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.PortProtocol = void 0;
|
|
17
|
+
exports.instanceOfPortProtocol = instanceOfPortProtocol;
|
|
18
|
+
exports.PortProtocolFromJSON = PortProtocolFromJSON;
|
|
19
|
+
exports.PortProtocolFromJSONTyped = PortProtocolFromJSONTyped;
|
|
20
|
+
exports.PortProtocolToJSON = PortProtocolToJSON;
|
|
21
|
+
exports.PortProtocolToJSONTyped = PortProtocolToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Transport protocol for a published container port.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PortProtocol = {
|
|
27
|
+
Tcp: 'tcp',
|
|
28
|
+
Udp: 'udp'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfPortProtocol(value) {
|
|
31
|
+
for (const key in exports.PortProtocol) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.PortProtocol, key)) {
|
|
33
|
+
if (exports.PortProtocol[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function PortProtocolFromJSON(json) {
|
|
41
|
+
return PortProtocolFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PortProtocolFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function PortProtocolToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function PortProtocolToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RegistryAuth } from './RegistryAuth';
|
|
12
13
|
/**
|
|
13
14
|
* Request body for [`pull_image_handler`]. Blocking pull of an OCI image.
|
|
14
15
|
* @export
|
|
@@ -28,6 +29,23 @@ export interface PullImageRequest {
|
|
|
28
29
|
* @memberof PullImageRequest
|
|
29
30
|
*/
|
|
30
31
|
reference: string;
|
|
32
|
+
/**
|
|
33
|
+
* Inline Docker/OCI registry credentials used for this pull only. Not
|
|
34
|
+
* persisted, never logged, never echoed back on a response. Takes
|
|
35
|
+
* precedence over `registry_credential_id`.
|
|
36
|
+
* @type {RegistryAuth}
|
|
37
|
+
* @memberof PullImageRequest
|
|
38
|
+
*/
|
|
39
|
+
registryAuth?: RegistryAuth | null;
|
|
40
|
+
/**
|
|
41
|
+
* Id of a persisted registry credential (from
|
|
42
|
+
* `POST /api/v1/credentials/registry`) to use for this pull. Ignored
|
|
43
|
+
* when [`Self::registry_auth`] is also supplied (inline auth wins).
|
|
44
|
+
* Requires the daemon to be configured with a credential store.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PullImageRequest
|
|
47
|
+
*/
|
|
48
|
+
registryCredentialId?: string | null;
|
|
31
49
|
}
|
|
32
50
|
/**
|
|
33
51
|
* Check if a given object implements the PullImageRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.PullImageRequestFromJSON = PullImageRequestFromJSON;
|
|
|
18
18
|
exports.PullImageRequestFromJSONTyped = PullImageRequestFromJSONTyped;
|
|
19
19
|
exports.PullImageRequestToJSON = PullImageRequestToJSON;
|
|
20
20
|
exports.PullImageRequestToJSONTyped = PullImageRequestToJSONTyped;
|
|
21
|
+
const RegistryAuth_1 = require("./RegistryAuth");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the PullImageRequest interface.
|
|
23
24
|
*/
|
|
@@ -36,6 +37,8 @@ function PullImageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'pullPolicy': json['pull_policy'] == null ? undefined : json['pull_policy'],
|
|
38
39
|
'reference': json['reference'],
|
|
40
|
+
'registryAuth': json['registry_auth'] == null ? undefined : (0, RegistryAuth_1.RegistryAuthFromJSON)(json['registry_auth']),
|
|
41
|
+
'registryCredentialId': json['registry_credential_id'] == null ? undefined : json['registry_credential_id'],
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
function PullImageRequestToJSON(json) {
|
|
@@ -48,5 +51,7 @@ function PullImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
51
|
return {
|
|
49
52
|
'pull_policy': value['pullPolicy'],
|
|
50
53
|
'reference': value['reference'],
|
|
54
|
+
'registry_auth': (0, RegistryAuth_1.RegistryAuthToJSON)(value['registryAuth']),
|
|
55
|
+
'registry_credential_id': value['registryCredentialId'],
|
|
51
56
|
};
|
|
52
57
|
}
|