@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,72 @@
|
|
|
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 { BridgeNetworkDriver } from './BridgeNetworkDriver';
|
|
13
|
+
/**
|
|
14
|
+
* A user-defined bridge or overlay network that containers can attach to.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BridgeNetwork
|
|
17
|
+
*/
|
|
18
|
+
export interface BridgeNetwork {
|
|
19
|
+
/**
|
|
20
|
+
* Creation timestamp (UTC, RFC 3339).
|
|
21
|
+
* @type {Date}
|
|
22
|
+
* @memberof BridgeNetwork
|
|
23
|
+
*/
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Driver backing the network (bridge vs. overlay).
|
|
27
|
+
* @type {BridgeNetworkDriver}
|
|
28
|
+
* @memberof BridgeNetwork
|
|
29
|
+
*/
|
|
30
|
+
driver?: BridgeNetworkDriver;
|
|
31
|
+
/**
|
|
32
|
+
* Opaque server-generated identifier (UUID v4).
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BridgeNetwork
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* If true, containers attached to this network cannot reach the outside
|
|
39
|
+
* world — only other containers on the same network.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof BridgeNetwork
|
|
42
|
+
*/
|
|
43
|
+
internal?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Arbitrary key/value labels for filtering and grouping.
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof BridgeNetwork
|
|
48
|
+
*/
|
|
49
|
+
labels?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Human-readable, unique name (must match `^[a-z0-9][a-z0-9_-]{0,63}$`).
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BridgeNetwork
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* IPv4/IPv6 subnet in CIDR notation (e.g. `"10.240.0.0/24"`).
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BridgeNetwork
|
|
62
|
+
*/
|
|
63
|
+
subnet?: string | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the BridgeNetwork interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfBridgeNetwork(value: object): value is BridgeNetwork;
|
|
69
|
+
export declare function BridgeNetworkFromJSON(json: any): BridgeNetwork;
|
|
70
|
+
export declare function BridgeNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeNetwork;
|
|
71
|
+
export declare function BridgeNetworkToJSON(json: any): BridgeNetwork;
|
|
72
|
+
export declare function BridgeNetworkToJSONTyped(value?: BridgeNetwork | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfBridgeNetwork = instanceOfBridgeNetwork;
|
|
17
|
+
exports.BridgeNetworkFromJSON = BridgeNetworkFromJSON;
|
|
18
|
+
exports.BridgeNetworkFromJSONTyped = BridgeNetworkFromJSONTyped;
|
|
19
|
+
exports.BridgeNetworkToJSON = BridgeNetworkToJSON;
|
|
20
|
+
exports.BridgeNetworkToJSONTyped = BridgeNetworkToJSONTyped;
|
|
21
|
+
const BridgeNetworkDriver_1 = require("./BridgeNetworkDriver");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the BridgeNetwork interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfBridgeNetwork(value) {
|
|
26
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function BridgeNetworkFromJSON(json) {
|
|
35
|
+
return BridgeNetworkFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function BridgeNetworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'createdAt': (new Date(json['created_at'])),
|
|
43
|
+
'driver': json['driver'] == null ? undefined : (0, BridgeNetworkDriver_1.BridgeNetworkDriverFromJSON)(json['driver']),
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'internal': json['internal'] == null ? undefined : json['internal'],
|
|
46
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'subnet': json['subnet'] == null ? undefined : json['subnet'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function BridgeNetworkToJSON(json) {
|
|
52
|
+
return BridgeNetworkToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function BridgeNetworkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'created_at': value['createdAt'].toISOString(),
|
|
60
|
+
'driver': (0, BridgeNetworkDriver_1.BridgeNetworkDriverToJSON)(value['driver']),
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'internal': value['internal'],
|
|
63
|
+
'labels': value['labels'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'subnet': value['subnet'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 container attached to a [`BridgeNetwork`].
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BridgeNetworkAttachment
|
|
16
|
+
*/
|
|
17
|
+
export interface BridgeNetworkAttachment {
|
|
18
|
+
/**
|
|
19
|
+
* DNS aliases the container can be reached by on this network.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BridgeNetworkAttachment
|
|
22
|
+
*/
|
|
23
|
+
aliases?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Runtime-provided container id.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BridgeNetworkAttachment
|
|
28
|
+
*/
|
|
29
|
+
containerId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Container name, if known.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BridgeNetworkAttachment
|
|
34
|
+
*/
|
|
35
|
+
containerName?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Assigned IPv4 address on the network (if any).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BridgeNetworkAttachment
|
|
40
|
+
*/
|
|
41
|
+
ipv4?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BridgeNetworkAttachment interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfBridgeNetworkAttachment(value: object): value is BridgeNetworkAttachment;
|
|
47
|
+
export declare function BridgeNetworkAttachmentFromJSON(json: any): BridgeNetworkAttachment;
|
|
48
|
+
export declare function BridgeNetworkAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeNetworkAttachment;
|
|
49
|
+
export declare function BridgeNetworkAttachmentToJSON(json: any): BridgeNetworkAttachment;
|
|
50
|
+
export declare function BridgeNetworkAttachmentToJSONTyped(value?: BridgeNetworkAttachment | 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.instanceOfBridgeNetworkAttachment = instanceOfBridgeNetworkAttachment;
|
|
17
|
+
exports.BridgeNetworkAttachmentFromJSON = BridgeNetworkAttachmentFromJSON;
|
|
18
|
+
exports.BridgeNetworkAttachmentFromJSONTyped = BridgeNetworkAttachmentFromJSONTyped;
|
|
19
|
+
exports.BridgeNetworkAttachmentToJSON = BridgeNetworkAttachmentToJSON;
|
|
20
|
+
exports.BridgeNetworkAttachmentToJSONTyped = BridgeNetworkAttachmentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BridgeNetworkAttachment interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBridgeNetworkAttachment(value) {
|
|
25
|
+
if (!('containerId' in value) || value['containerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BridgeNetworkAttachmentFromJSON(json) {
|
|
30
|
+
return BridgeNetworkAttachmentFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BridgeNetworkAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
38
|
+
'containerId': json['container_id'],
|
|
39
|
+
'containerName': json['container_name'] == null ? undefined : json['container_name'],
|
|
40
|
+
'ipv4': json['ipv4'] == null ? undefined : json['ipv4'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function BridgeNetworkAttachmentToJSON(json) {
|
|
44
|
+
return BridgeNetworkAttachmentToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BridgeNetworkAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'aliases': value['aliases'],
|
|
52
|
+
'container_id': value['containerId'],
|
|
53
|
+
'container_name': value['containerName'],
|
|
54
|
+
'ipv4': value['ipv4'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { BridgeNetworkDriver } from './BridgeNetworkDriver';
|
|
13
|
+
import type { BridgeNetworkAttachment } from './BridgeNetworkAttachment';
|
|
14
|
+
/**
|
|
15
|
+
* Response body for `GET /api/v1/container-networks/{id_or_name}`.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BridgeNetworkDetails
|
|
18
|
+
*/
|
|
19
|
+
export interface BridgeNetworkDetails {
|
|
20
|
+
/**
|
|
21
|
+
* Creation timestamp (UTC, RFC 3339).
|
|
22
|
+
* @type {Date}
|
|
23
|
+
* @memberof BridgeNetworkDetails
|
|
24
|
+
*/
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Driver backing the network (bridge vs. overlay).
|
|
28
|
+
* @type {BridgeNetworkDriver}
|
|
29
|
+
* @memberof BridgeNetworkDetails
|
|
30
|
+
*/
|
|
31
|
+
driver?: BridgeNetworkDriver;
|
|
32
|
+
/**
|
|
33
|
+
* Opaque server-generated identifier (UUID v4).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BridgeNetworkDetails
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* If true, containers attached to this network cannot reach the outside
|
|
40
|
+
* world — only other containers on the same network.
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof BridgeNetworkDetails
|
|
43
|
+
*/
|
|
44
|
+
internal?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Arbitrary key/value labels for filtering and grouping.
|
|
47
|
+
* @type {{ [key: string]: string; }}
|
|
48
|
+
* @memberof BridgeNetworkDetails
|
|
49
|
+
*/
|
|
50
|
+
labels?: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Human-readable, unique name (must match `^[a-z0-9][a-z0-9_-]{0,63}$`).
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BridgeNetworkDetails
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
/**
|
|
60
|
+
* IPv4/IPv6 subnet in CIDR notation (e.g. `"10.240.0.0/24"`).
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof BridgeNetworkDetails
|
|
63
|
+
*/
|
|
64
|
+
subnet?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Containers currently attached to the network.
|
|
67
|
+
* @type {Array<BridgeNetworkAttachment>}
|
|
68
|
+
* @memberof BridgeNetworkDetails
|
|
69
|
+
*/
|
|
70
|
+
attachedContainers: Array<BridgeNetworkAttachment>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the BridgeNetworkDetails interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfBridgeNetworkDetails(value: object): value is BridgeNetworkDetails;
|
|
76
|
+
export declare function BridgeNetworkDetailsFromJSON(json: any): BridgeNetworkDetails;
|
|
77
|
+
export declare function BridgeNetworkDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeNetworkDetails;
|
|
78
|
+
export declare function BridgeNetworkDetailsToJSON(json: any): BridgeNetworkDetails;
|
|
79
|
+
export declare function BridgeNetworkDetailsToJSONTyped(value?: BridgeNetworkDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfBridgeNetworkDetails = instanceOfBridgeNetworkDetails;
|
|
17
|
+
exports.BridgeNetworkDetailsFromJSON = BridgeNetworkDetailsFromJSON;
|
|
18
|
+
exports.BridgeNetworkDetailsFromJSONTyped = BridgeNetworkDetailsFromJSONTyped;
|
|
19
|
+
exports.BridgeNetworkDetailsToJSON = BridgeNetworkDetailsToJSON;
|
|
20
|
+
exports.BridgeNetworkDetailsToJSONTyped = BridgeNetworkDetailsToJSONTyped;
|
|
21
|
+
const BridgeNetworkDriver_1 = require("./BridgeNetworkDriver");
|
|
22
|
+
const BridgeNetworkAttachment_1 = require("./BridgeNetworkAttachment");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the BridgeNetworkDetails interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfBridgeNetworkDetails(value) {
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('attachedContainers' in value) || value['attachedContainers'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function BridgeNetworkDetailsFromJSON(json) {
|
|
38
|
+
return BridgeNetworkDetailsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BridgeNetworkDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'createdAt': (new Date(json['created_at'])),
|
|
46
|
+
'driver': json['driver'] == null ? undefined : (0, BridgeNetworkDriver_1.BridgeNetworkDriverFromJSON)(json['driver']),
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'internal': json['internal'] == null ? undefined : json['internal'],
|
|
49
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'subnet': json['subnet'] == null ? undefined : json['subnet'],
|
|
52
|
+
'attachedContainers': (json['attached_containers'].map(BridgeNetworkAttachment_1.BridgeNetworkAttachmentFromJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function BridgeNetworkDetailsToJSON(json) {
|
|
56
|
+
return BridgeNetworkDetailsToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function BridgeNetworkDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'created_at': value['createdAt'].toISOString(),
|
|
64
|
+
'driver': (0, BridgeNetworkDriver_1.BridgeNetworkDriverToJSON)(value['driver']),
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'internal': value['internal'],
|
|
67
|
+
'labels': value['labels'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'subnet': value['subnet'],
|
|
70
|
+
'attached_containers': (value['attachedContainers'].map(BridgeNetworkAttachment_1.BridgeNetworkAttachmentToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -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
|
+
* Backing driver for a [`BridgeNetwork`].
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BridgeNetworkDriver: {
|
|
17
|
+
readonly Bridge: "bridge";
|
|
18
|
+
readonly Overlay: "overlay";
|
|
19
|
+
};
|
|
20
|
+
export type BridgeNetworkDriver = typeof BridgeNetworkDriver[keyof typeof BridgeNetworkDriver];
|
|
21
|
+
export declare function instanceOfBridgeNetworkDriver(value: any): boolean;
|
|
22
|
+
export declare function BridgeNetworkDriverFromJSON(json: any): BridgeNetworkDriver;
|
|
23
|
+
export declare function BridgeNetworkDriverFromJSONTyped(json: any, ignoreDiscriminator: boolean): BridgeNetworkDriver;
|
|
24
|
+
export declare function BridgeNetworkDriverToJSON(value?: BridgeNetworkDriver | null): any;
|
|
25
|
+
export declare function BridgeNetworkDriverToJSONTyped(value: any, ignoreDiscriminator: boolean): BridgeNetworkDriver;
|
|
@@ -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.BridgeNetworkDriver = void 0;
|
|
17
|
+
exports.instanceOfBridgeNetworkDriver = instanceOfBridgeNetworkDriver;
|
|
18
|
+
exports.BridgeNetworkDriverFromJSON = BridgeNetworkDriverFromJSON;
|
|
19
|
+
exports.BridgeNetworkDriverFromJSONTyped = BridgeNetworkDriverFromJSONTyped;
|
|
20
|
+
exports.BridgeNetworkDriverToJSON = BridgeNetworkDriverToJSON;
|
|
21
|
+
exports.BridgeNetworkDriverToJSONTyped = BridgeNetworkDriverToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Backing driver for a [`BridgeNetwork`].
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BridgeNetworkDriver = {
|
|
27
|
+
Bridge: 'bridge',
|
|
28
|
+
Overlay: 'overlay'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfBridgeNetworkDriver(value) {
|
|
31
|
+
for (const key in exports.BridgeNetworkDriver) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.BridgeNetworkDriver, key)) {
|
|
33
|
+
if (exports.BridgeNetworkDriver[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function BridgeNetworkDriverFromJSON(json) {
|
|
41
|
+
return BridgeNetworkDriverFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BridgeNetworkDriverFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function BridgeNetworkDriverToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function BridgeNetworkDriverToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Body for `POST /api/v1/container-networks/{id_or_name}/connect`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConnectBridgeNetworkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConnectBridgeNetworkRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Optional DNS aliases on this network.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ConnectBridgeNetworkRequest
|
|
22
|
+
*/
|
|
23
|
+
aliases?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Container id to attach.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConnectBridgeNetworkRequest
|
|
28
|
+
*/
|
|
29
|
+
containerId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional static IPv4 to pin this container to. Validated as
|
|
32
|
+
* [`Ipv4Addr`].
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ConnectBridgeNetworkRequest
|
|
35
|
+
*/
|
|
36
|
+
ipv4Address?: string | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ConnectBridgeNetworkRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfConnectBridgeNetworkRequest(value: object): value is ConnectBridgeNetworkRequest;
|
|
42
|
+
export declare function ConnectBridgeNetworkRequestFromJSON(json: any): ConnectBridgeNetworkRequest;
|
|
43
|
+
export declare function ConnectBridgeNetworkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectBridgeNetworkRequest;
|
|
44
|
+
export declare function ConnectBridgeNetworkRequestToJSON(json: any): ConnectBridgeNetworkRequest;
|
|
45
|
+
export declare function ConnectBridgeNetworkRequestToJSONTyped(value?: ConnectBridgeNetworkRequest | 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.instanceOfConnectBridgeNetworkRequest = instanceOfConnectBridgeNetworkRequest;
|
|
17
|
+
exports.ConnectBridgeNetworkRequestFromJSON = ConnectBridgeNetworkRequestFromJSON;
|
|
18
|
+
exports.ConnectBridgeNetworkRequestFromJSONTyped = ConnectBridgeNetworkRequestFromJSONTyped;
|
|
19
|
+
exports.ConnectBridgeNetworkRequestToJSON = ConnectBridgeNetworkRequestToJSON;
|
|
20
|
+
exports.ConnectBridgeNetworkRequestToJSONTyped = ConnectBridgeNetworkRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ConnectBridgeNetworkRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConnectBridgeNetworkRequest(value) {
|
|
25
|
+
if (!('containerId' in value) || value['containerId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ConnectBridgeNetworkRequestFromJSON(json) {
|
|
30
|
+
return ConnectBridgeNetworkRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ConnectBridgeNetworkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
38
|
+
'containerId': json['container_id'],
|
|
39
|
+
'ipv4Address': json['ipv4_address'] == null ? undefined : json['ipv4_address'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ConnectBridgeNetworkRequestToJSON(json) {
|
|
43
|
+
return ConnectBridgeNetworkRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ConnectBridgeNetworkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'aliases': value['aliases'],
|
|
51
|
+
'container_id': value['containerId'],
|
|
52
|
+
'ipv4_address': value['ipv4Address'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { ContainerEventKind } from './ContainerEventKind';
|
|
13
|
+
/**
|
|
14
|
+
* A container lifecycle event published on the bus.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContainerEvent
|
|
17
|
+
*/
|
|
18
|
+
export interface ContainerEvent {
|
|
19
|
+
/**
|
|
20
|
+
* Wall-clock time the event was emitted.
|
|
21
|
+
*
|
|
22
|
+
* Serialized as an RFC 3339 string on the wire. Typed as
|
|
23
|
+
* [`chrono::DateTime<Utc>`] in-process for ergonomic manipulation;
|
|
24
|
+
* the `#[schema(value_type = String, format = DateTime)]` attribute
|
|
25
|
+
* teaches `utoipa` to render a proper string schema in the `OpenAPI`
|
|
26
|
+
* output.
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof ContainerEvent
|
|
29
|
+
*/
|
|
30
|
+
at: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Exit code, when known. Populated for `Die` events where a wait has
|
|
33
|
+
* already resolved; otherwise `None`.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof ContainerEvent
|
|
36
|
+
*/
|
|
37
|
+
exitCode?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Container identifier (the API's id string, not the raw runtime id).
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ContainerEvent
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* What kind of transition this event represents.
|
|
46
|
+
* @type {ContainerEventKind}
|
|
47
|
+
* @memberof ContainerEvent
|
|
48
|
+
*/
|
|
49
|
+
kind: ContainerEventKind;
|
|
50
|
+
/**
|
|
51
|
+
* Labels on the container at the time of the event. Used by subscribers
|
|
52
|
+
* to filter via the `label=k=v` query param (AND semantics).
|
|
53
|
+
* @type {{ [key: string]: string; }}
|
|
54
|
+
* @memberof ContainerEvent
|
|
55
|
+
*/
|
|
56
|
+
labels?: {
|
|
57
|
+
[key: string]: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Free-form human-readable reason. For `Die`, may indicate "stopped",
|
|
61
|
+
* "killed", "oom-killed"; for `Oom`, the OOM detail; for `Health`, may
|
|
62
|
+
* echo the probe failure message.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ContainerEvent
|
|
65
|
+
*/
|
|
66
|
+
reason?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Health status, only populated for `Health` events (e.g. "healthy",
|
|
69
|
+
* "unhealthy", "starting").
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ContainerEvent
|
|
72
|
+
*/
|
|
73
|
+
status?: string | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ContainerEvent interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfContainerEvent(value: object): value is ContainerEvent;
|
|
79
|
+
export declare function ContainerEventFromJSON(json: any): ContainerEvent;
|
|
80
|
+
export declare function ContainerEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerEvent;
|
|
81
|
+
export declare function ContainerEventToJSON(json: any): ContainerEvent;
|
|
82
|
+
export declare function ContainerEventToJSONTyped(value?: ContainerEvent | null, ignoreDiscriminator?: boolean): any;
|